{% extends "docs/base.html" %} {% block docs_content %}
Attach and detach existing repo uploads without a separate context lookup.
attach_file_upload returns attachment metadata plus active upload detail and content links.attach_file_upload_group atomically snapshots and attaches every active group member.detach_file_upload returns a detached status and the upload UUID.Both tools require repo, upload_uuid, and exactly one target shape:
attach_file_upload_group uses group_uuid instead of upload_uuid and returns the group UUID with every created attachment.
| Target | Arguments |
|---|---|
| Thread | thread_number |
| Reply | thread_number and reply_number |
| Pull | pull_number |
| Pull review | pull_number and review_uuid |
{
"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.