List tasks
list_tasksFind and filter checkbox tasks across an Obsidian vault from the index by status, date, tag, priority, or text, with paging—without reading notes.
Instructions
List checkbox tasks (- [ ] …) across the vault in one call, from the index — no note is read.
For a dated overview (overdue, due today, scheduled, upcoming) use
task_agenda; use list_tasks to filter, search and page. Plain
checkboxes work; Tasks-plugin emoji fields (📅 due, ⏳ scheduled, 🛫 start,
✅ done, 🔁 recurrence, priority) are optional and read when present. Query
blocks are text and are not evaluated; a checkbox in code is not a task.
The index follows each pass (default every 300 s); task writes refresh it
at once.
Each row: the raw marker, the path in backticks with :line, — id <id>,
the dates, priority, tags, under: heading and text: last. In a path,
whitespace and a backtick are shown as \n, \t, \uXXXX
(a backtick is \u0060) and \ as \\; the write tools take the
unescaped path.
complete_task and update_task take that id with the path; an id shaped
<key>.<i>of<n> (identical lines) also needs expected_hash, the note's
content_hash from read_note. detail="brief" prints one short line per
task; context=true adds the indented lines under each task (┆).
Status: [ ], [/] and other markers are open; [x]/[X] are done;
[-] is cancelled (only in cancelled and all). Dates accept
YYYY-MM-DD, today, tomorrow, yesterday, +Nd or -Nd, resolved in
your task timezone (the query line states it and each resolved date).
*_from / *_by are inclusive and exclude tasks without that date.
The header always states what the index could not show — notes not yet
scanned, tasks that could not be indexed, notes over the 5,000-task cap,
ids pending — and, under scope="default", how many tasks your excluded
folders, note tags and task rule removed, so "no tasks" does not mean
none exist.
When more rows match, the header says more: yes and the response ends
next: <cursor>: pass it back with the same arguments. A cursor from other
arguments, an older server version, or a relative-date query continued
after midnight is refused (invalid_argument): start again without one.
response_cap_too_small: the response cap cannot hold one row.
Args:
folder: Only notes under this path prefix (e.g. "Projects/").
status: open (default), done, cancelled or all.
due_by: Due on or before this date.
scheduled_by: Scheduled on or before this date.
tags: Tasks carrying every one of these tags on the task line, matched
by / segment and case-insensitively (a matches #a and #A/b,
not #ab). At most 32, a leading # optional.
limit: Tasks per page, 1–500 (default 100).
cursor: The next value from the previous page of the same query.
due_from: Due on or after this date.
scheduled_from: Scheduled on or after this date.
done_from: Done on or after this date.
done_by: Done on or before this date.
undated: true — neither a due nor a scheduled date; false — at least one.
has_due: true — with a due date; false — without.
text: 1–256 characters, at most 8 words; every word must occur in the
task's text, case-insensitively.
priority: Any of highest, high, medium, none, low, lowest.
recurring: true — with a 🔁 rule; false — without.
exclude_tags: Drop tasks carrying any of these tags (matched as tags).
path: Exactly this note.
order_by: due (default, undated last), priority, scheduled,
done (newest first) or path.
detail: full (default) or brief.
context: true to include each task's indented context lines.
scope: default applies your task settings: excluded folders,
excluded note tags and the task rule (which checkboxes count as
tasks); all ignores them.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_tasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| tags | No | ||
| text | No | ||
| limit | No | ||
| scope | No | default | |
| cursor | No | ||
| detail | No | full | |
| due_by | No | ||
| folder | No | ||
| status | No | open | |
| context | No | ||
| done_by | No | ||
| has_due | No | ||
| undated | No | ||
| due_from | No | ||
| order_by | No | due | |
| priority | No | ||
| done_from | No | ||
| recurring | No | ||
| exclude_tags | No | ||
| scheduled_by | No | ||
| scheduled_from | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |