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.
The resource
| Field | Value |
|---|---|
uri | xale://formats/list |
name | list-format |
title | How to send a List (nested list) |
mimeType | text/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.
| Problem | Message after Line n: |
|---|---|
| Not an item | expected an item starting with "- " or "1. ", found "…". |
| Too deep a jump | the indent goes more than one level deeper than the line above; indent … spaces for one level. |
| Too deep | Lists nest at most 8 levels. |
| Item too long | the item is … characters; a List item holds at most 1,000. |
| Too many items | a List holds at most 100 items, counting every level. Split it into two Lists. |
| Two titles | a 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_.
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