create_upload_url
Creates a signed upload URL and media_id. The file's raw bytes are uploaded with PUT to data.upload.signedUrl; creating the URL alone does not upload anything. Once uploaded, the media_id resolves to a public URL that posts and drafts accept as media[].url. The signed URL is a temporary upload credential.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filename": "<filename>",
"content_type": "<content_type>"
},
"name": "create_upload_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Original file name including extension. | |
| content_type | Yes | MIME type of the file being uploaded. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Upstream error details, when available. | |
| code | No | Error code when the tool result has isError=true. | |
| data | No | Present on successful results; omitted on tool errors. | |
| meta | No | ||
| status | No | ||
| message | No |