upload_image
Upload an image file to X (Twitter) for use in posts. Accepts JPEG, PNG, WebP, or GIF up to 5MB.
Instructions
Upload an image file (max 5MB, JPEG/PNG/WebP/GIF). Please provide an absolute file path.
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": {
"path": "<path>"
},
"name": "upload_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the image file | |
| media_category | No | Media category (post_image or post_gif) | post_image |