{% extends "docs/base.html" %} {% block docs_content %}

Content attachment tools

Attach and detach existing repo uploads without a separate context lookup.

Tools

Arguments

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.

TargetArguments
Threadthread_number
Replythread_number and reply_number
Pullpull_number
Pull reviewpull_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.

{% endblock %}