Move Entry Sources
moveEntrySourcesMove entries into another ledger file in one commit: each entry's source text leaves its file byte for byte and is appended to toPath in ledger order. listLedgerEntries with include_source returns each entry's hash and sha256sum. Refused, writing nothing: a toPath the ledger does not load unless includeFrom is given, a stale sha256sum (CONFLICT), an entry already in toPath, and a move that adds a bean-check error (VALIDATION_FAILED, unless allowInvalid). dry_run previews without committing. 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": {
"entries": "<entries>",
"toPath": "<toPath>"
},
"name": "moveEntrySources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Alias of dry_run, as REST and GraphQL spell it. | |
| ledger | No | Ledger as owner/name; see the server instructions. | |
| toPath | Yes | Repository path of the .bean or .beancount file the entries move into; created when absent. | |
| dry_run | No | Run every check and return the preview without committing | |
| entries | Yes | ||
| includeFrom | No | A file the ledger loads that gains include "<toPath>" (relative to it) when toPath is not loaded yet. Without it, an unloaded toPath is refused. | |
| allowInvalid | No | Commit even when the write would add bean-check errors (VALIDATION_FAILED with newLedgerErrors), instead of refusing it. | |
| allow_invalid | No | Alias of allowInvalid. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |