get_post_attachments
Retrieve all attachments (files, images, documents) from a specific post by providing chat ID and post number. Returns file ID, name, size, and download URL.
Instructions
Get list of attachments (files, images, documents) from a specific post.
Args: chat_id: ID of the chat post_no: Post number
Returns: ToolResponse with GetPostAttachmentsPayload containing list of attachments including file ID, name, size, and download URL
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": {
"chat_id": "<chat_id>",
"post_no": "<post_no>"
},
"name": "get_post_attachments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_id | Yes | ||
| post_no | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message if operation failed | |
| message | Yes | Human-readable summary of the result | |
| payload | No | The actual response data | |
| success | Yes | Whether the operation was successful |