sn_attachment_download
Download a ServiceNow attachment by sys_id and save it to a local path; return only the file path and size, refusing to overwrite unless explicitly enabled.
Instructions
Download one attachment from ServiceNow and save it to a local file. Returns the path and size only, never the file contents. Refuses to replace an existing file unless overwrite is true.
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>",
"save_to": "<save_to>"
},
"name": "sn_attachment_download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sys_id | Yes | The sys_id of the attachment (from sn_attachment_list): 32 hex characters. | |
| save_to | Yes | Absolute local path to save the file to. The folder must already exist. | |
| overwrite | No | Set to true to replace a file that already exists at save_to. |