Get a presigned PUT URL for one file
request_uploadGet a presigned PUT URL for one file.
Step 1 of 3: returns a presigned PUT URL and the exact headers to send (Content-Type and Content-Length must match what you announced; the URL works only for that exact size and type — anything else is refused with 403 by storage). Then PUT the bytes to that URL, then call attach_file.
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_key": "<project_key>",
"issue_key": "<issue_key>",
"filename": "<filename>",
"content_type": "<content_type>",
"size_bytes": "<size_bytes>"
},
"name": "request_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| issue_key | Yes | Issue key `{PROJECT}-{n}`, e.g. `KJ-101`. | |
| size_bytes | Yes | ||
| project_key | Yes | Project key, e.g. `KJ`. 2–10 chars, uppercase letters and digits, starts with a letter. | |
| content_type | Yes |