Create media upload ticket
create_media_upload_ticketReturns a short-lived upload ticket for a media uploader widget session. Called by the widget itself.
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": {
"session_id": "<session_id>"
},
"name": "create_media_upload_ticket"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | The session_id returned by open_media_uploader. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Stable machine-readable error code. Present only for an error result. | |
| data | No | ||
| errors | No | Validation messages keyed by input field. | |
| issues | No | Structured validation issues. | |
| message | No | Safe error summary. Present only for an error result. | |
| retry_after | No | Seconds to wait before retrying a rate-limited request. |