# 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.

Checked 2026-12-04 · https://xale.app/docs/ai/list-format-nested-list

## 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_append_to_list`](https://xale.app/docs/ai/tools/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."

## Related

- For people: [How do I make a nested list in Xale?](https://xale.app/help/new-list-nested-items)
- For people: [How do I reorder items in a Xale list?](https://xale.app/help/reorder-a-list-drag-and-indent)
- Tools: [xale_save_list](https://xale.app/docs/ai/tools/xale_save_list)
- Tools: [xale_append_to_list](https://xale.app/docs/ai/tools/xale_append_to_list)
- Read next: [Lists · fields and nesting](https://xale.app/docs/ai/lists-fields-and-nesting)
- Read next: [Checklist](https://xale.app/lexicon/checklist)
- Read next: [Draw a Mindmap · as an image](https://xale.app/docs/ai/draw-a-mindmap-as-an-image)
