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.
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 |