Run Dataview Table Query
dataview.tableRun structured Dataview TABLE queries on an Obsidian vault to produce columnar output, with optional FROM, WHERE, SORT, and LIMIT clauses for precise data extraction.
Instructions
Convenience wrapper that runs TABLE field1, field2, … FROM … with optional WHERE, SORT, and LIMIT clauses. Use this when you need structured columnar output. Requires the Dataview and Local REST API plugins.
Operates on the session-active vault (see vault.current — selectable via vault.select) unless an explicit vaultPath argument is passed, which always wins.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | Yes | Field expressions to project as table columns (e.g. `file.name`, `priority`). | |
| fromClause | No | Optional DQL `FROM` clause body. Example: `#projects AND -#archive`. | |
| whereClause | No | Optional DQL `WHERE` clause body (without the `WHERE` keyword). | |
| sortBy | No | Optional DQL `SORT` clause body (without the `SORT` keyword). Example: `file.ctime desc`. | |
| limit | No | Optional `LIMIT` n clause. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||