get_issue_attachment
Fetch metadata for a specific issue attachment by ID, including name, size, download count, and URL, without downloading the file content.
Instructions
Fetch one issue attachment's metadata by attachment_id (get the id from list_issue_attachments). Returns id, name, size, download_count, browser_download_url — it does NOT download the file content.
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": {
"index": "<index>",
"attachment_id": "<attachment_id>"
},
"name": "get_issue_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name (defaults to GITEA_DEFAULT_REPO) | |
| index | Yes | Issue number | |
| owner | No | Repository owner (defaults to GITEA_DEFAULT_OWNER) | |
| attachment_id | Yes | Attachment ID |