Obsidian API icon

Obsidian API

Run official Obsidian CLI commands through the Obsidian API Docker service

Actions19

Note → Prepend

AI-generated

Summary

Prepends the supplied content to the note at the specified vault path by running the Obsidian CLI prepend command.

Inputs

  • Path (required) — Note path, such as Inbox/Note.md.
  • Content (required) — Text to prepend to the note.
  • Timeout Seconds — Command timeout in seconds; defaults to 60.
  • Vault — Vault name or path to use, overriding the credential’s default vault when provided.

Output shape

One output item per input item, containing a JSON object.

On success, returns parsed CLI stdout when available; otherwise returns { "ok": true }. The result may also include stderr or timed_out. A nonzero CLI exit code raises an error unless Continue On Fail is enabled.

Links

Discussion