Get Attachment Content
servicenow_get_attachment_contentDownload ServiceNow attachment content by sys_id. Text files return the file content directly; binary files return metadata and a download URL.
Instructions
Download the content of a file attachment by its sys_id.
Args:
sys_id (string): sys_id of the attachment (get from servicenow_list_attachments)
response_format: Output format
Returns: File content for text files (plain text, XML, JSON, CSV, JS, etc.). Binary files return metadata and a download URL only.
Note: Use servicenow_list_attachments first to find the sys_id of the attachment.
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": "servicenow_get_attachment_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sys_id | Yes | ServiceNow sys_id (32-character GUID) of the record | |
| response_format | No | Output format: 'markdown' (default) for human-readable or 'json' for structured data | markdown |