Skip to main content

mr note-blocks list

List every block attached to a Note in position order. --note-id is required; the server returns the full set (no pagination), ordered by the fractional position string. Use this to inspect the current layout before reordering, to dump a note's structured content to JSON for processing, or to feed block IDs into downstream commands.

Usage

mr note-blocks list

Examples

List every block on note 42 (table output)

mr note-blocks list --note-id 42

Get blocks as JSON and extract id + position pairs

mr note-blocks list --note-id 42 --json | jq -r '.[] | [.id, .position] | @tsv'

Flags

FlagTypeDefaultDescription
--note-iduint0Note ID (required) (required)

Inherited global flags

FlagTypeDefaultDescription
--jsonboolfalseOutput raw JSON
--no-headerboolfalseOmit table headers
--pageint1Page number for list commands (default page size: 50)
--quietboolfalseOnly output IDs
--serverstringhttp://localhost:8181mahresources server URL (env: MAHRESOURCES_URL)

Output

Array of NoteBlock objects with id, noteId, type, position, content, state, createdAt, updatedAt (ordered by position ascending)

Exit Codes

0 on success; 1 on any error

See Also