List Tasks
vault_list_tasksList and filter checkbox tasks across an Obsidian vault by status, due date, folder, heading, tag, or priority. Run vault-wide triage such as overdue, per-project open work, or completed-this-week in one call.
Instructions
List checkbox tasks across the whole vault with structured filters — the Tasks-plugin data model over MCP. Both task metadata formats are indexed: emoji signifiers (📅 due, ⏫ priority, 🔁 recurrence, ...) and Dataview inline fields ([due:: 2026-07-04], [priority:: high], ...). Task lines inside fenced code blocks and %% %% comment blocks are not indexed. Checkboxes typed NON_TASK in the Tasks plugin's status settings are also excluded.
Example: vault_list_tasks({ due: { before: "2026-07-04" } }) — overdue triage; the default status (not_done) and sort (due ascending) make this the "what's overdue?" call Example: vault_list_tasks({ path: "Code Projects/vault-cortex/TASKS.md", heading: ["Active", "Up Next", "Waiting On"], sort_by: "position" }) — actionable Kanban lanes in board order Example: vault_list_tasks({ folder: "Code Projects/vault-cortex" }) — all open tasks across a project tree (TASKS.md + task-notes/ subdirectories) Example: vault_list_tasks({ status: "done", done: { after: "2026-06-26" } }) — what got completed this week
When to use: Reading task status and order on one board (path + sort_by: "position"; add status: "all" to include done and cancelled cards). Also any vault-wide task triage question — "what's overdue?", "what's open per project?", "what did I finish this week?" — in one call instead of per-board reads. Prefer vault_read_note (heading mode) only when you need a lane's verbatim Markdown or a task's state right after a write. Prefer vault_search for full-text queries over note content.
Behavior: A file change takes a few seconds to appear here. No matches returns { total: 0, tasks: [] }, not an error.
Parameters:
status: "not_done" and "all" expand in arrays — ["not_done", "done"] matches todo + in_progress + done.
due / scheduled / start / done / created / cancelled: a date filter only matches tasks that HAVE that date.
folder: a whole folder, subfolders included ("Projects" covers "Projects/Archive" but not "ProjectsOld/"), ignoring ASCII letter case.
sort_by: a task with none of a date sort's dates comes last; "priority" ascending puts highest first, and tasks with no priority sort between medium and low.
Errors:
"invalid due.before date: …" (any date filter's bound) — the bound isn't in YYYY-MM-DD form; use that form
"… is not a calendar date" — a date filter's bound has the YYYY-MM-DD form but names a day that doesn't exist, such as 2026-02-30; pass a real date
"path must end in …" — add the .md extension
"tag must not be empty …" — tag is "#" alone; pass the tag name
"[SqliteError]: …" / "[IndexIntegrityError]: …" — the index failed, not the call; the message says what to do
Returns: JSON { total, tasks }. Every task carries path, line, status, status_char (the checkbox character, such as "x" or "/"), description, folder (the task note's parent folder), depth (0 for top-level, 1+ for sub-tasks), is_kanban_task (true when the task's note has kanban-plugin in its properties), depends_on, and tags (the arrays are [] when empty). Every other field appears only when the task has it: heading (nearest heading above the task), created/scheduled/start/due/done/cancelled dates, priority, recurrence, on_completion, task_id, block_id, parent_block_id (sub-tasks whose parent carries a ^block-id), done_lanes (Kanban boards only: the headings of the lanes whose first line is Complete), and subtask_progress ({ done, total } over the task's DIRECT checklist children; done counts status "done" only, a cancelled child counts toward total, and the counts ignore the query's filters).
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": "vault_list_tasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| due | No | Due date (📅 / [due:: ]) bounds | |
| tag | No | Tag on the task line, "#" optional; matches nested tags, any letter case | |
| done | No | Done date (✅ / [completion:: ]) bounds | |
| path | No | Restrict to one note (vault-relative path ending ".md", case-sensitive) | |
| limit | No | Max results (default 50); total always reports the full match count | |
| start | No | Start date (🛫 / [start:: ]) bounds | |
| folder | No | Restrict to a folder (e.g. "Code Projects/vault-cortex") | |
| status | No | Status filter, OR-combined (default "not_done" = todo + in_progress). | not_done |
| created | No | Created date (➕ / [created:: ]) bounds | |
| heading | No | Exact heading text or array of headings, OR-combined, case-sensitive (e.g. "Active" or ["Active", "Up Next"]) | |
| sort_by | No | Sort key (default "due"). Date sorts cascade through related fields when the primary is absent (through the rest of due → scheduled → start → created, in that order; done does not cascade). "position" sorts by file path then line number. | due |
| priority | No | Priority levels, OR-combined; "none" selects tasks with no priority signifier | |
| cancelled | No | Cancelled date (❌ / [cancelled:: ]) bounds | |
| scheduled | No | Scheduled date (⏳ / [scheduled:: ]) bounds | |
| sort_direction | No | Sort direction. Default per field: "asc" for due/scheduled/priority/position, "desc" for start/created/done/note_mtime. When a date sort cascades (see sort_by), each field uses its own default direction; an explicit value overrides all fields uniformly. | |
| top_level_only | No | When true, only top-level tasks (depth 0) are returned — excludes indented sub-tasks and checklist items. Default false. |