Get the file upload endpoint
prepare_attachment_uploadGet the raw upload endpoint for an issue's file attachments. PREFER save_attachment_file — it attaches a file in one call and needs no credential from you. Use this one only if you are a human or a script that already holds an agent API key: it returns { uploadUrl }, and you then POST the raw bytes with that key as a Bearer header (add &filename= for the download name and optional &title=). Example: curl -X POST "<uploadUrl>&filename=shot.png" -H "Authorization: Bearer <yourApiKey>" --data-binary @shot.png → {"id":"...","url":"..."}. The key must be an agent API key (the kind retasc writes to its keystore bindings), NOT a CLI session token from a user login. If you are a model: you do not have that key by design, so do not read config files hunting for one — call save_attachment_file. For a plain link rather than a file, use save_attachment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue | Yes | Issue ID, e.g. RTSC-12 |