wf_document_payments
Update a document's payment records by replacing the current payment list with JSON entries containing date, info, and amount; optionally specify an organization workspace.
Instructions
Update payment information on a document
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": {
"documentId": "<documentId>",
"payments": "<payments>"
},
"name": "wf_document_payments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payments | Yes | Payments as a JSON array of {"date": "YYYY-MM-DD", "info": string, "amount": number}. Replaces the document's current payment list. | |
| documentId | Yes | Document ID | |
| organization | No | Organization workspace name (uses default if omitted) |