Create an Attachment
create_attachmentA file to send with a request (send_request attachments), up to 100 MB. Give ONE of: size (bytes) — you get a one-time upload_url: PUT the file's exact bytes to it with the given headers, e.g. curl -sf -X PUT -H "content-type: <type>" --data-binary @<file> "<upload_url>" (best for local files); url — Taskriz fetches it (https, public); or content — the file base64-encoded (small files, up to 2 MB). An attachment not sent within a day is deleted.
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>"
},
"name": "create_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | An https URL Taskriz fetches it from. | |
| name | No | The file name people see, e.g. "Q3 report.pdf" (from the URL when omitted). | |
| size | No | Its size in bytes — for an upload link. | |
| type | No | Its MIME type, e.g. application/pdf. | |
| content | No | Its bytes, base64-encoded (up to 2 MB). | |
| agent_id | Yes | The Agent (from list_agents or create_agent). |