Attach a file to a ticket
attach_fileAttach a file to the ticket: a log, a JSON dump, a Markdown report, a screenshot. Give text for a text file or base64 for anything else, never both. The file gets the next number in the ticket and a line in the thread. At most 10 MB.
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": {
"project": "<project>",
"number": "<number>",
"name": "<name>"
},
"name": "attach_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | The file name with its extension, like crash.log or before.png; the type is read from it unless contentType is given. | |
| text | No | The file's text, for a text file (Markdown, JSON, a log). | |
| base64 | No | The file's bytes as base64, for an image or any other file. | |
| number | Yes | The ticket's number in this project, like 12. | |
| project | Yes | The project: its id, or its exact name. | |
| contentType | No | The MIME type, when the name does not say: image/png, application/json. |