Content attachment tools
Attach and detach existing repo uploads without a separate context lookup.
Tools
attach_file_uploadreturns attachment metadata plus active upload detail and content links.detach_file_uploadreturns a detached status and the upload UUID.
Arguments
Both tools require repo, upload_uuid, and exactly one target shape:
| Target | Arguments |
|---|---|
| Thread | thread_number |
| Reply | thread_number and reply_number |
| Pull | pull_number |
| Pull review | pull_number and review_uuid |
Example
{
"name": "attach_file_upload",
"arguments": {
"repo": "teams/acme/webapp",
"pull_number": 17,
"review_uuid": "550e8400-...",
"upload_uuid": "a1b2c3d4-..."
}
}
get_thread_context and get_pull_context include attachment arrays inline on every supported target.