create_attachment
Attach a base64-encoded file to an IT Glue record; use the returned downloadUrl to embed pictures in document bodies via .
Instructions
Attach a file to an IT Glue record, and the only supported way to get a picture into a document body: upload here, then reference the returned downloadUrl from an . 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 |