List Attachments
list_attachmentsLists file attachments on ServiceNow records, returning metadata like file name, content type, and size. Use it to discover what files are attached to incidents, changes, or any record.
Instructions
List file attachments on a ServiceNow record. Returns metadata for each attachment including file name, content type, and size.
Use this to discover what files are attached to incidents, changes, catalog items, or any other record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of attachments to return. Default 50. | |
| table | Yes | The table name the record belongs to (e.g., "incident", "change_request"). | |
| instance | No | The ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable. | |
| record_sys_id | Yes | The sys_id of the record to list attachments for. |