create_attachment
Attach a downloadable file to any IT Glue record by providing the record type, ID, file name, and base64-encoded content.
Instructions
Attach a file to an IT Glue record. Unlike create_document_image this adds a downloadable attachment rather than an image in the document body. Pass the file as base64 with no data: prefix.
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": {
"resource_type": "<resource_type>",
"resource_id": "<resource_id>",
"file_name": "<file_name>",
"content": "<content>"
},
"name": "create_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Base64-encoded file contents. Raw base64 only - strip any 'data:...;base64,' prefix first. | |
| file_name | Yes | File name including extension, e.g. 'network-diagram.png' | |
| resource_id | Yes | ID of the record to attach the file to | |
| resource_type | Yes | The kind of record to attach the file to |