switch_book
Switch the active GnuCash book for subsequent operations in multi-book sessions. Select by unique filename prefix to redirect all tool calls and logs to the new book until next switch.
Instructions
Switch the active GnuCash book (multi-book sessions only).
All subsequent tool calls — and the audit/debug logs — operate on the newly-selected book until the next switch. Only present when GNUCASH_BOOK_PATH lists 2+ books.
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": {
"name": "<name>"
},
"name": "switch_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Book to activate, matched as a case-insensitive prefix of its filename. Must uniquely identify one configured book (see get_server_config for the list). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |