attachment_list
Retrieve a list of file attachments for a task or project, returning metadata such as name, type, size, and date added.
Instructions
List all file attachments on a task or project. Do not use to retrieve attachment content — use attachment_save_to_path instead. Returns { attachments } — array of objects with id, name, mimeType, sizeBytes, addedAt, and kind (embedded|alias). Provide exactly one of taskId or projectId. Read-only; safe to retry. Example: attachment_list({ taskId: "abc123" })
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "attachment_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | No | Persistent ID of the task that owns the attachment. Provide exactly one of taskId or projectId. | |
| projectId | No | Persistent ID of the project that owns the attachment. Provide exactly one of taskId or projectId. |