Verbex Dataview Bridge

approvedunreviewed

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.

Updated todayMIT

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):

ToolWhat it does
queryRuns 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_blocksTakes 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. dataviewjs blocks and inline queries (`= ...`, `$= ...`) are listed by render_note_blocks as "not executed". query refuses code fences, dataviewjs, $= and anything that does not start with TABLE, LIST, TASK or CALENDAR.
  • 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 forceId so every row keeps the link of the note it came from. WITHOUT ID is 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 FROM selects. The Bridge reads FROM with a conservative scanner (folders, tags, links, outgoing(), -/!, and/or, parentheses); a query without FROM reads the whole vault. If it cannot tell what FROM selects, 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 to render_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.