list_lots
List investment lots for any GnuCash account with pagination, closed-lot filtering, and optional verbose JSON details. Track remaining shares and cost basis at a glance.
Instructions
List all lots for an investment account.
Leads with a Showing X-Y of Z lots line, then a compact
one-line-per-lot format by default. Page with offset;
limit=0 returns the count only. Use verbose=true for full
JSON with guid, title, notes, etc.
Args: account: Account ref (full path, %short GUID, or full 32-char GUID). include_closed: If True, include fully-sold lots. Default False. verbose: If true, return full JSON details for each lot. limit: Page size (default 50, max 250). 0 = count only. offset: 0-indexed first row to return (default 0).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| account | Yes | ||
| verbose | No | ||
| include_closed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |