nexus_upload_attachment
Upload base64-encoded files as attachments via GraphQL multipart requests, returning an attachment ID to reference in comment mutations.
Instructions
Upload an attachment (usable in comments) via the v2 GraphQL multipart spec.
Accepts base64-encoded content and posts it as an Apollo Upload multipart request. Attachments can then be referenced by id in comment mutations.
Returns: JSON {attachment: {id, filename, url}} or an error string.
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": {
"filename": "<filename>",
"content_base64": "<content_base64>"
},
"name": "nexus_upload_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | File name including extension. | |
| mime_type | No | MIME type. | application/octet-stream |
| content_base64 | Yes | Base64-encoded file content. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |