by everydaymind
Lets the Verbex AI agent run read-only Dataview (DQL) queries and reports the source note of every row so private notes can be refused.
Verbex Dataview Bridge
An Obsidian plugin that lets the Verbex AI agent run read-only Dataview (DQL) queries and reports the source note of every result row, so a result that touches an AI-private note can be refused as a whole.
It is a small provider for the agentinterop protocol (v1). It has no commands, no editor features and no network access.
Requirements
- Verbex 0.2.0 or later (the first Verbex release that hosts Bridges; it advertises
host-capabilities-v1). Without it the Bridge offers no tools and shows one notice per session when an older Verbex is enabled: "Verbex Dataview Bridge needs a newer Verbex." - Dataview 0.5.x (tested against 0.5.68), enabled, with its index built.
What it adds to Verbex
Two read-only tools (approved once in Verbex like any plugin tool):
| Tool | What it does |
|---|---|
query | Runs one DQL query (TABLE, LIST, TASK, CALENDAR, up to 8,000 characters) and returns the result as Markdown. Optional origin is a vault path of a Markdown note used as this. |
render_note_blocks | Takes a Markdown note path, finds its fenced dataview blocks (at most 20) and runs each with that note as this. Returns every block's start line, DQL and result or error. |
It also ships the Obsidian Dataview Guide Skill (English and Korean) for Verbex.
The tool list does not depend on whether Dataview is on, so toggling Dataview never asks you to approve the plugin again. When Dataview is off, a call returns an error ("Dataview is not enabled; turn it on in Settings → Community plugins."); while its index is still building the error is marked retryable.
Read-only, DQL only
- Nothing in your vault is changed.
- DataviewJS is never executed.
dataviewjsblocks and inline queries (`= ...`,`$= ...`) are listed byrender_note_blocksas "not executed".queryrefuses code fences,dataviewjs,$=and anything that does not start withTABLE,LIST,TASKorCALENDAR. - Results are rendered with Dataview's own Markdown renderers, so the text matches what Dataview shows. Long results are cut at 20,000 characters and the result says so.
Privacy behaviour
Verbex refuses a tool result when any note the result came from is marked AI-private. For that, the Bridge reports the source notes of every result (dev.agentinterop/evidencePaths):
- TABLE and LIST run with Dataview's
forceIdso every row keeps the link of the note it came from.WITHOUT IDis honored in the text you see, but the source notes are still reported. - TASK reports each task's file (children and groupings included). CALENDAR reports each entry's note.
- GROUP BY rows are group keys, not notes, so the Bridge reports a superset: every note the query's
FROMselects. The Bridge readsFROMwith a conservative scanner (folders, tags, links,outgoing(),-/!,and/or, parentheses); a query withoutFROMreads the whole vault. If it cannot tell whatFROMselects, or the superset is larger than 256 notes, the query is refused with a message such as "This grouped query reads N notes; narrow FROM to at most 256 notes." - The host accepts at most 256 source notes per result. When the rows of a result come from more, rows are kept in order until the 256th distinct note and the rest are dropped; the text says how many rows were returned and that the result was cut at the 256-source-note limit.
origin(or the note given torender_note_blocks) is always included.
Known limit: values read through links from other notes are not traced. For example, in TABLE author.name where author links to another note, that note is not reported as a source. Prefer fields of the queried notes themselves when privacy matters.
Settings
The settings tab only shows status: whether Verbex supports the Bridge, whether Dataview is enabled (and its version), and the Skills offered to Verbex.
Build
npm ci
npm run typecheck
npm run lint
npm run lint:no-node-types # lint as the Obsidian review bot does, without @types/node
npm test
npm run build # main.js and dist/ (not minified, on purpose)
npm run build:repro # builds twice and compares hashes
npm run release:check
The Skill data in src/provider/agent-assets.generated.json is generated from agent-skills/ by the Verbex generator (npx tsx scripts/plugin-skills.ts generate|check <this repository> from the Verbex repository). The copy of the host-capabilities-v1 contract in contracts/ is owned by Verbex and compared with its manifest by npm test.
License
MIT
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.