Get a media file
get_mediaRead one library file: filename, mimeType, size, dimensions, duration, altText, hasThumbnail and — for a video — processing (true while it is still being prepared: wait until it is false before attaching it, so the post does not publish a video the platform cannot read yet). Use it to check a fresh upload or import before attaching it; no download URL is returned.
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": {
"mediaId": "<mediaId>"
},
"name": "get_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mediaId | Yes | The media ID (from list_media) | |
| organizationId | No | Organization to act in — an id from list_organizations. Required when this connection was authorized for more than one organization; omit it when there is only one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Use this as a mediaId on a post | |
| size | No | Bytes | |
| width | No | ||
| height | No | ||
| altText | No | Alternative text published with this file; null when none — set it with update_media | |
| duration | No | Seconds, for video | |
| filename | No | ||
| mimeType | No | ||
| mimetype | No | Deprecated: the same value as mimeType, kept for one release cycle. Use mimeType. | |
| createdAt | No | ||
| duplicate | No | True when an import matched a file already in the library | |
| processing | No | True while a fresh video is still being prepared (poster and dimensions); wait before attaching it to a post | |
| hasThumbnail | No |