companies
DeepLedger: list and switch the companies you work in, on any ledger (QuickBooks or Xero). Every other tool acts on the ACTIVE company, named in each result's "company" field. current (default): the active company, its ledger and apps. list: every company with its ledger. switch (organizationId or name): make one active for every later call from every AI client; name it to the user before the first write. Every write passes companyId (the organizationId in the last "company"); COMPANY_MISMATCH means it changed (another chat may have switched): ask the user. Use the tools of the active company's ledger (qb* or xero*). On NO_ACTIVE_COMPANY: list, then switch. feedback (subject, message): report a problem to DeepLedger; no financial data.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "companies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | switch: the company name; must match one company. | |
| message | No | feedback: what happened; no financial data. | |
| subject | No | feedback: one line; no amounts or names. | |
| operation | No | current | |
| organizationId | No | switch: the id from list. |