List attachments
attachment_listLists attachment metadata (file name, type, size, owning record) for a ServiceNow record or exact file name so you can pick files to download. Returns metadata only, not content.
Instructions
List attachment metadata (file name, type, size, owning record), not content. Filter by the record's table and sys_id, and/or by exact file name. Use attachment_download to read one.
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 |
|---|---|---|---|
| limit | No | Maximum records to return. Defaults to the configured default, capped at maxRecords. | |
| sysId | No | sys_id of that record (needs table). | |
| table | No | Table of the record the files are attached to. | |
| offset | No | Records to skip (paging). Use nextOffset from the previous result. | |
| fileName | No | Exact file name. | |
| instance | No | Instance alias from the config (see instance_list). Defaults to the default instance. |