upload_attachment
Upload a base64-encoded attachment to a ServiceNow record (requires WRITE_ENABLED=true). Useful for adding files, screenshots, or documents to incidents, changes, etc.
Instructions
Upload a base64-encoded attachment to a ServiceNow record (requires WRITE_ENABLED=true). Useful for adding files, screenshots, or documents to incidents, changes, etc.
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": {
"table": "<table>",
"record_sys_id": "<record_sys_id>",
"file_name": "<file_name>",
"content_type": "<content_type>",
"content_base64": "<content_base64>"
},
"name": "upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | Table name (e.g. "incident") | |
| file_name | Yes | File name including extension (e.g. "screenshot.png") | |
| content_type | Yes | MIME type (e.g. "image/png", "application/pdf", "text/plain", "application/json") | |
| record_sys_id | Yes | sys_id of the record to attach the file to | |
| content_base64 | Yes | Base64-encoded file content (standard base64; maximum decoded size: 10 MiB) |