JSON Mode
Every Bowerbird command supports JSON mode for scripting and AI integration.
JSON Output
Section titled “JSON Output”Add --output json to any command:
bwrb list task --output jsonbwrb audit --output jsonbwrb search "My Note" --output jsonJSON Input
Section titled “JSON Input”Provide field values without interactive prompts:
bwrb new task --json '{"name": "Fix login", "priority": "high"}'bwrb edit "My Task" --json '{"status": "done"}'bwrb bulk set --json '{"status": "archived"}' --type taskScripting Examples
Section titled “Scripting Examples”Create Note from Script
Section titled “Create Note from Script”#!/bin/bashbwrb new task --json "{ \"name\": \"$TASK_NAME\", \"priority\": \"$PRIORITY\"}"Process Audit Results
Section titled “Process Audit Results”bwrb audit --output json | jq '.violations[] | .file'Batch Operations
Section titled “Batch Operations”bwrb list task --output json | \ jq -r '.[] | select(.status == "done") | .path' | \ xargs -I {} bwrb delete {} --executeAI Integration
Section titled “AI Integration”JSON mode makes Bowerbird scriptable by AI assistants:
# AI can read vault statebwrb list --output json
# AI can create notesbwrb new idea --json '{"name": "AI suggestion", "status": "raw"}'