sn_attachment_list
List file attachments for a ServiceNow record or entire table, returning file names, content types, sizes, and timestamps. Specify table and optional sys_id to find the attachments you need.
Instructions
List file attachments. Give table and sys_id to see the attachments of one record, or only table for every attachment on that table. Returns sys_id, file_name, content_type, size_bytes, table_name, table_sys_id and sys_created_on for each.
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": "sn_attachment_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many attachments to return. Default 20, at most 200. | |
| table | No | Table the attachments belong to. Example: incident. | |
| sys_id | No | The sys_id of the record the attachments belong to: 32 hex characters. |