Obsidian API icon

Obsidian API

Run official Obsidian CLI commands through the Obsidian API Docker service

Actions19

Search → Search With Context

AI-generated

Summary

Searches the selected Obsidian vault for the required query and includes matching context using the search:context CLI command. Choose Text or JSON output format; the command uses the configured vault unless an optional vault override is supplied.

Inputs

  • Query (required) — Search query passed as query=<value>.
  • Format — Output format: Text (text, default) or JSON (json).
  • Timeout Seconds — Command timeout in seconds; defaults to 60.
  • Vault — Vault name or path override. If omitted, the credential's default vault is used.

Output shape

A single n8n item per input item, containing the parsed JSON stdout when available, otherwise { "ok": true } when stdout is not parsed.

The node adds stderr when present and timed_out when true. A nonzero CLI exit code or API request failure raises an error; with Continue On Fail enabled, the item contains { "ok": false, "error": "..." }.

Links

Discussion