Work on a document
document_workThe work on documents and bank lines after they came in. action=check (document_id): the completeness bar, six points (supplier or customer, date, amounts, VAT, account, payment matched), each done or what is missing and where it is fixed. action=fill (document_id, fields: supplier_name, number, issue_date, currency, net, vat_total, gross): the values the owner gave, as the person's reading. action=payments (document_id): bank lines that may pay it; action=match (document_id, bank_line_id). action=comment (on: document or bank_line, id, text; @handle names a person, who gets a mail; task=true with assignee, due YYYY-MM-DD, remind_at 'YYYY-MM-DD HH:MM' UTC makes it a task on To do), action=thread (on, id), action=tasks (the open tasks), action=task_done (task_id; reopen=true takes it back), action=people (who may be named). action=split_proposal (document_id): where the invoices of one PDF start; action=split (document_id, starts: [1, 3]): one document per invoice. action=statement_check (document_id, supplier optional): a supplier statement or dunning letter against the supplier's bills: missing in the books (record or fetch them), not on the statement, amounts that differ, paid but still listed; action=statement (document_id) the last check; action=fetch_mail (document_id) the mail asking the supplier for the missing invoices (from the owner's mailbox, the receipts address in cc). action=cloud: the cloud folders connected for the company and the providers this server connects (none while none is switched on); action=cloud_pull (provider): read the picked folder now. Comments, documents and statements written by others stand under 'untrusted'.
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": {
"action": "<action>"
},
"name": "document_work"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| on | No | ||
| due | No | ||
| task | No | ||
| text | No | ||
| action | Yes | ||
| fields | No | ||
| reopen | No | ||
| starts | No | ||
| company | No | ||
| task_id | No | ||
| assignee | No | ||
| provider | No | ||
| supplier | No | ||
| remind_at | No | ||
| document_id | No | ||
| bank_line_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||