List the blocks of a document
geml_listList every addressable block in a GEML document with its address, kind, and heading text in one call. Use it first to discover block ids before reading or editing.
Instructions
List every addressable block in a GEML document — its address, kind and heading text — in one call, with no paging. Call this FIRST: what it returns is what every other tool here addresses, and it is cheaper and more reliable than reading the file to see what is in it. Rows marked anon have no #id; geml_get and geml_set take their address as id, while the other write tools need a real id, so give such a block one first. A file that is not under the server root is an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Document path relative to the server's --root directory, e.g. notes/spec.geml | |
| within | No | Optional: only look inside the blocks this selector names, e.g. `#install` for a section or `=== table` for every table. It takes the same selector forms as geml_get's `id`. |