attachment_commit
Finalizes a file upload and returns its absolute path, SHA-256 hash, and size so an agent can reference and read the file with its own tools.
Instructions
Finish an upload. Returns the absolute path the file now lives at, plus its sha256 and size. Reference that path in the prompt (a resource_link with a file:// URI) and the agent can read it with its own tools.
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": {
"uploadId": "<uploadId>"
},
"name": "attachment_commit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uploadId | Yes |