get_file_upload_content
Download the raw bytes for a file upload.
Tools
get_file_upload_content
Parameters
- repo: repo locator such as `teams/team_slug/repo_slug` or `username/repo_slug`.
- uuid: file upload UUID.
Example
curl -X POST https://ghit.example/api/v1/mcp \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_file_upload_content",
"arguments": {
"repo": "teams/acme/webapp",
"uuid": "a1b2c3d4-..."
}
}
}'
Notes
- The tool returns the stored bytes with attachment headers.