Import uploaded images
media_importUse this when the user attaches one or more images for a post. Import the files into the authenticated media library and return stable media IDs.
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": {
"files": "<files>"
},
"name": "media_import"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| idempotencyKey | No | Optional retry key. Reuse the same key with the same payload to deduplicate agent retries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media | Yes |