attach_file
Upload a file and attach it to an issue, project, or comment. Send the file content as base64 in content_base64 (up to 25 MB). Returns markdown (a ready relative link such as ): paste exactly that into the issue/comment/description text.
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": "attach_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | e.g. image/png; guessed from the filename if omitted | |
| issue | No | issue identifier or id, e.g. "WEB-12" | |
| project | No | project key or id, e.g. "WEB" | |
| filename | Yes | e.g. screenshot.png | |
| comment_id | No | comment id (from list_comments or read_issue) | |
| content_base64 | Yes | the file bytes, base64-encoded |