Rename Account
renameAccountRename an account and every account under it across the ledger's loaded files in one commit: account tokens outside strings and comments, whole names only. Bank mappings move with it. Refused for an invalid name, another root, or a name the ledger already uses; new bean-check errors refuse the commit unless allowInvalid. Pinned credentials can omit ledger. dry_run previews without committing: the changed lines and bank mappings. revertCommit undoes the commit.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "renameAccount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | The new name; it must stay under the same root. | |
| from | Yes | The account to rename; every account under it is renamed too. | |
| dryRun | No | Alias of dry_run, as REST and GraphQL spell it. | |
| ledger | No | Ledger as owner/name; see the server instructions. | |
| dry_run | No | Run every check and return the preview without committing | |
| allowInvalid | No | Commit even when the rename adds bean-check errors the ledger did not have. | |
| allow_invalid | No | Alias of allowInvalid. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |