file_upload
Uploads a file for attachment: attachToken goes into a task, bug or feature spec / result, fid into chat message attachments; one fid can be attached in several places. With dataBase64 (up to 2097152 bytes) the file is saved at once. Without it, provide the exact size in bytes (up to maxSize), PUT the file to uploadURL using the required headers from the ticket (Content-Length must match size), then complete the upload by calling file_upload with fid. Files cannot be deleted through MCP.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fid | No | fid of a URL upload whose content has been PUT - completes the upload. | |
| name | No | File name with extension, e.g. "screenshot.png"; the extension sets the type | |
| size | No | Exact file size in bytes; required for upload via URL and must match PUT Content-Length | |
| dataBase64 | No | File content in base64, up to 2097152 bytes; omitted for upload via URL |