Query a base
query_baseRun a saved base view to retrieve its rows, column values, groups, and summaries from wiki pages you can open. Use it for read-only querying; edit values via page front matter.
Instructions
Runs one view of a base page (an Obsidian .base file, kind "base": a saved query over the pages of its space) and returns its rows: one page per row, its values by column (note properties, file.* fields, formula.* results), the groups and column summaries of the view. Only pages the caller can open are rows. Read-only: change a value with update_page on that page's front matter. Use read_page on the base for its YAML (filters, formulas, views).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "query_base"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Page id of the base (kind "base") | |
| view | No | View name; the first view when omitted | |
| limit | No | Rows to return, 1-500 (default 100) | |
| offset | No | Rows to skip (paging) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | One page per row, values by column id | |
| view | Yes | The view answered (null: the base has no views, a default table) | |
| error | No | The base file could not be read | |
| total | Yes | Rows after the filters, before offset/limit | |
| views | Yes | The views of the base | |
| groups | No | ||
| columns | Yes | Property ids (note.x / file.x / formula.x) and their display names | |
| warnings | Yes | ||
| summaries | No | ||
| truncated | Yes | More pages matched than a base evaluates |