Upload an item
upload_itemUpload one file (base64, up to 8388608 bytes) with its SHA-256 and your signature (Ed25519 or ES256, matching your key) over the upload statement "rooms-upload-v1\n<case_id>\n\n\n<media_type>\n<file_name>\n", made with a key registered at POST /api/signing-keys. Scope: cases:write. REST twin: POST /api/cases/:id/uploads. Errors: unauthorized, insufficient_scope, not_found, forbidden, consent_required, read_only, validation_error, payload_too_large, digest_mismatch, signature_invalid, conflict, payment_required.
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": {
"case_id": "<case_id>",
"file_name": "<file_name>",
"media_type": "<media_type>",
"base64": "<base64>",
"sha256": "<sha256>",
"key_id": "<key_id>",
"signature": "<signature>"
},
"name": "upload_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | ap2-mandate, x402-receipt, x401-credential and agent-signature are agent payment items: Rooms checks what it can at intake and logs the result (item.checked). | |
| amends | No | The ver_ id this amends (the latest version). | |
| base64 | Yes | The file bytes, base64. | |
| key_id | Yes | Your signing key id (its JWK thumbprint). | |
| reason | No | Why, for an amendment. | |
| sha256 | Yes | SHA-256 of the bytes, lowercase hex. | |
| case_id | Yes | The case id (cas_...). | |
| file_name | Yes | ||
| folder_id | No | ||
| signature | Yes | Ed25519 or ES256 (matching the key) over the upload statement, base64url. | |
| media_type | Yes | ||
| captured_at | No | ISO-8601 UTC. |