Create IT Glue Attachment
itglue_create_attachmentAttach an image or file to any IT Glue record (document, asset, configuration, etc.) by providing a base64 string, URL, or local file path, up to 25 MB.
Instructions
Attach an image or file to a record (document, flexible asset, configuration, etc.). The file appears under the record's Attachments in IT Glue. Provide exactly one image source: content_base64 (a base64 string, optionally a data: URI), url (the server fetches and encodes it), or file_path (local stdio runs only). Give file_name with an extension (e.g. network-diagram.png) so IT Glue detects the type; it is inferred from url/file_path when omitted. Max 25 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL the server fetches and base64-encodes | |
| file_name | No | Display file name with extension; inferred from url/file_path if omitted | |
| file_path | No | Local filesystem path to read (stdio transport only) | |
| resource_id | Yes | The parent record ID | |
| resource_type | Yes | The record type to attach to | |
| content_base64 | No | Base64-encoded file bytes (a leading data: URI prefix is stripped) | |
| response_format | No | Output format: human-readable markdown (default) or structured JSON | markdown |