ChirpyDevelopers Open Chirpy

Actions / Media

Finish upload

Read and createfinish_upload

Adds an uploaded file to the Media Library once its bytes have arrived, and returns its fileId for mediaFileIds on create_drafts or attach_media. A file whose size or type differs from what start_upload declared is removed.

Needs the write scope. Creates or changes things in Chirpy. Publishes nothing.

Inputs

InputTypeRequiredDescription
fileIdintegerYesThe fileId start_upload returned

REST

curl https://chirpy.me/api/v1/finish_upload \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"fileId":123}'

MCP

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "finish_upload",
    "arguments": {
      "fileId": 123
    }
  }
}

MCP hints: readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: false.