Run Dataview Table Query
dataview.tableRun Dataview TABLE queries on Obsidian vaults to get structured columnar data. Specify fields, optional filters, sorting, and limits for precise output.
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 |
|---|---|---|---|
| limit | No | Optional `LIMIT` n clause. | |
| fields | Yes | Field expressions to project as table columns (e.g. `file.name`, `priority`). | |
| sortBy | No | Optional DQL `SORT` clause body (without the `SORT` keyword). Example: `file.ctime desc`. | |
| fromClause | No | Optional DQL `FROM` clause body. Example: `#projects AND -#archive`. | |
| whereClause | No | Optional DQL `WHERE` clause body (without the `WHERE` keyword). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||