Get an Attachment
get_attachmentA file someone sent back in a reply (get_replies lists them): a short-lived download URL (5 minutes — e.g. curl -sfL -o <name> "<url>"); an image up to 5 MB also comes back as an image you can see, and a small text file as text.
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": {
"agent_id": "<agent_id>",
"attachment_id": "<attachment_id>"
},
"name": "get_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | The Agent (from list_agents or create_agent). | |
| attachment_id | Yes |