Get Attachment Info
get_attachment_infoRetrieve metadata for a specific attachment by its sys_id, including file name, content type, size, and the record it is attached to.
Instructions
Get metadata for a specific attachment by its sys_id. Returns file name, content type, size, and the record it is attached to.
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": {
"sys_id": "<sys_id>"
},
"name": "get_attachment_info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sys_id | Yes | The sys_id of the attachment to retrieve. | |
| instance | No | The ServiceNow instance auth alias (e.g., "myinstance", "prod"). If not provided, falls back to the SN_AUTH_ALIAS environment variable. |