copy_attachment
Copy a ServiceNow attachment from one record to another server-side without moving file bytes. Specify source attachment and target record to reuse documents across incidents or KB articles.
Instructions
Copy an existing ServiceNow attachment onto another record, entirely server-side (requires WRITE_ENABLED=true). The file bytes never pass through this tool call. Ideal for "attach the same document from this record onto that KB / incident".
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>",
"target_table": "<target_table>",
"target_record_sys_id": "<target_record_sys_id>"
},
"name": "copy_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | No | Optional new file name (defaults to the source name) | |
| target_table | Yes | Table to copy the attachment to (e.g. "kb_knowledge") | |
| attachment_sys_id | Yes | sys_id of the source attachment to copy | |
| target_record_sys_id | Yes | sys_id of the target record |