list-documents
List the documents stored for a company in Osome that the user can see, in the order they were added (oldest first), one page at a time. Returns documents, each with only its Core document id and name, and no total count: request the next page until one returns fewer than perPage documents. Use get-document to look up one document by ID, list-invoices for sales invoice details, or prepare-document-upload to add a file.
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": {
"id": "<id>"
},
"name": "list-documents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Company ID, as returned by list-companies | |
| page | No | Page number, starting at 1 (default 1). | |
| perPage | No | Documents per page (default 20, max 100). |