home / skills / bdambrosio / cognitive_workbench / search-obsidian
This skill enables fast Obsidian note search via the Local REST API, returning structured JSON notes with uri, domain, format, and character count.
npx playbooks add skill bdambrosio/cognitive_workbench --skill search-obsidianReview the files below or copy the command above to add this skill to your agents.
---
name: search-obsidian
type: python
description: "Search Obsidian notes using Obsidian Local REST API. Returns Collection of JSON Notes with fields text, metadata.uri (alias: source_url), metadata.domain, format, char_count"
---
# search-obsidian
Search Obsidian vault using Local REST API. Returns Collection of structured Notes.
## Input
- `query`: Query string (literal search text, NOT a variable)
## Output
Success (`status: "success"`):
- `resource_id`: Collection ID containing structured Notes, each with:
- `text`: Note content
- `format`: "markdown"
- `metadata.uri`: Obsidian URI
- `metadata.domain`: "obsidian"
- `char_count`: Character count
## Behavior
- Searches by filename first, then content match
- Only searches markdown files (`.md`)
- Returns structured Notes matching search-web/semantic-scholar format
## Requirements
- Obsidian Local REST API plugin installed and enabled
- `OBSIDIAN_MCP_URL` environment variable (default: `http://127.0.0.1:27123`)
- `OBSIDIAN_MCP_API_KEY` environment variable
## Examples
```json
{"type":"search-obsidian","query":"neural networks","out":"$notes"}
{"type":"summarize","target":"$notes","focus":"what are neural networks","out":"$summary"}
```
This skill lets you search an Obsidian vault through the Obsidian Local REST API and returns a collection of structured JSON Notes. It focuses on Markdown files and provides note text plus metadata fields like an Obsidian URI, domain, format, and character count. Use it to integrate Obsidian content into pipelines for search, summarization, or downstream analysis.
The skill queries the Obsidian Local REST API (configured via OBSIDIAN_MCP_URL and OBSIDIAN_MCP_API_KEY) and searches Markdown files by filename first, then by content. It returns a Collection resource containing Notes with fields: text, format (markdown), metadata.uri (alias source_url), metadata.domain (obsidian), and char_count. Only .md files are considered and results are structured for easy consumption by search and summarization tools.
What setup is required to use this skill?
Install and enable the Obsidian Local REST API plugin, then set OBSIDIAN_MCP_URL and OBSIDIAN_MCP_API_KEY environment variables.
Does this search non-Markdown files?
No. The skill only searches and returns .md Markdown files from the vault.