Create document upload
create-document-uploadStart uploading a file to keep as a document: a bank statement, an invoice or a receipt.
WHEN TO USE: You can run shell commands and the file is on the local disk (Claude Code, an agent). Without a shell — a chat with the PDF attached — you cannot send its bytes: ask the user to upload it in the RoboLedger app, then find it with list-documents.
WORKFLOW:
Call this with the file's name (and its local path, to get a ready command).
Run the returned
upload_command. It PUTs the file; nothing passes through you.Call complete-document-upload with the
upload_idand a title.
RETURNS: upload_id, upload_url, expires_in and upload_command.
NOTES: A PDF, PNG or JPEG, at most 25 MB; the type is taken from the file's extension. Nothing is recorded until the upload completes, and an upload never completed expires. Stored files are not indexed for search.
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": {
"file_name": "<file_name>"
},
"name": "create-document-upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_name | Yes | The file's name, ending in .pdf, .png, .jpg or .jpeg (e.g. 'checking-2026-09.pdf') | |
| file_path | No | The file's local path, used only to write upload_command; the server never reads it |