files_upload
Upload a base64-encoded attachment to a supported Snipe-IT parent record, with filename sanitization and bounded multipart encoding.
Instructions
Upload one explicitly supplied base64 attachment to a supported Snipe-IT parent. The filename is sanitized, upload size is bounded, and multipart encoding is used. This tool cannot read or delete attachments.
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": {
"parent_type": "<parent_type>",
"parent_id": "<parent_id>",
"filename": "<filename>",
"content_base64": "<content_base64>"
},
"name": "files_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | No | ||
| filename | Yes | ||
| mime_type | No | application/octet-stream | |
| parent_id | Yes | ||
| parent_type | Yes | ||
| content_base64 | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | No | ||
| message | No | ||
| success | Yes | ||
| error_code | No | ||
| validation_errors | No |