Get media
get_mediaGet one media record by ID. Get the ID from list_media or get_post. target says what the media is attached to: post (default), comment, task, or taskComment.
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 |
|---|---|---|---|
| target | No | What the media is attached to. Default post. | |
| mediaId | Yes | Media ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| url | No | ||
| fileName | No | ||
| fileType | No |