Prompts and resources Resources

List format Nested list

The resource xale://formats/list says how to send a List: one item per line, nested by indent, with done rows marked - [x]. A refusal names the line to fix.

View as Markdown

The resource

FieldValue
urixale://formats/list
namelist-format
titleHow to send a List (nested list)
mimeTypetext/markdown

resources/read with { "uri": "xale://formats/list" } returns this text:

markdown
# Sending a List to Xale (xale_save_list)

One item per line, starting with "- " (or "1. " for a numbered List). Indent 2 spaces per level, up to 8 levels; a child may go one level deeper than the line above, never two.
"- [x] item" is done; "- [ ] item" or no box is not done. Blank lines are ignored. An optional "# Title" line may come before the first item; only one.
At most 100 items in all and 1,000 characters per item. A refusal names the line and what to change: fix it and send again with the same requestId.

A sample

json
{
  "list": "# Packing for Lisbon\n- Clothes\n  - [x] Rain jacket\n  - Walking shoes\n- Documents\n  - [ ] Passport\n",
  "requestId": "list-2026-12-02-packing"
}

Refusals name the line

Each starts with Line n: where it can. Fix that line and send again with the same requestId: nothing was saved.

ProblemMessage after Line n:
Not an itemexpected an item starting with "- " or "1. ", found "…".
Too deep a jumpthe indent goes more than one level deeper than the line above; indent … spaces for one level.
Too deepLists nest at most 8 levels.
Item too longthe item is … characters; a List item holds at most 1,000.
Too many itemsa List holds at most 100 items, counting every level. Split it into two Lists.
Two titlesa List has one "# Title" line, and line … is already the title. Make this an item or remove it.

A whole List is also held to 500 KB. To add to an existing List, use xale_append_to_list.

How it's served

Find the resource by URI in resources/list. An unknown uri in resources/read returns -32002, "Resource not found."

  • Checked against main d2feeb6e

Was this helpful?

list-format-nested-list.md · main@c1725f34