read_attachment
Retrieve text content from ServiceNow attachments server-side to summarize or draft from stored files. Supports common text formats; binary files return metadata only.
Instructions
Read an existing ServiceNow attachment and return its text content, server-side. Works for text formats (txt, csv, json, xml, html, md, log). Binary formats (PDF, DOCX, images) return metadata plus a note. Use this to summarise or draft from a file already in ServiceNow.
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": {
"attachment_sys_id": "<attachment_sys_id>"
},
"name": "read_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_chars | No | Max characters of text to return (default 200000) | |
| attachment_sys_id | Yes | sys_id of the attachment to read |