attachment
List, fetch, or download attachments linked to ServiceNow records. Specify action, record, or file name to retrieve the attachment you need.
Instructions
Read attachments. action: 'list' | 'get' | 'download' | 'download_by_name'.
Args: action: One of: list, get, download, download_by_name. sys_id: Attachment sys_id (for get, download). table: Parent table (for list, download_by_name). table_sys_id: Parent record sys_id (for list, download_by_name). file_name: File name (for download_by_name).
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": {
"action": "<action>"
},
"name": "attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | ||
| action | Yes | ||
| sys_id | No | ||
| file_name | No | ||
| table_sys_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |