Obsidian Remote — Obsidian 远程
v1.0.0通过内置的obsidian CLI实现对运行中的Obsidian桌面应用程序的完全远程控制。使用此技能代替随OpenClaw打包的较旧的obsidian-cli技能——此技能涵盖了随Obsidian自身发布的真正的、功能齐全的CLI。支持阅读、写入、搜索笔记、每日笔记、任务、属性/前置内容、标签、反向链接、模板、插件、同步、发布、书签、基础、主题、CSS代码片段、文件历史和开发工具(CDP、DOM、eval JS、截图)。触发器包括obsidian、vault、每日笔记、obsidian任务、obsidian搜索、obsidian属性、obsidian插件、obsidian同步、obsidian发布、obsidian书签、obsidian基础、obsidian模板、obsidian标签。需要运行中的Obsidian桌面应用程序。与obsidian-cli(基于URI的工具)不同。
运行时依赖
版本
obsidian publish:添加文件="Guide" # 发布文件
安装命令
点击复制技能文档
Obsidian Remote
This 技能 replaces the older obsidian-命令行工具-based 技能. The obsidian binary is Obsidian's own built-in 命令行工具 with full 应用 control. Prefer it for everything.
Prerequisites Obsidian 桌面 应用 运行ning (the 命令行工具 talks to the live 应用 process) obsidian binary on PATH (安装ed with the 桌面 应用; on macOS it's a shell wr应用er at /opt/homebrew/bin/obsidian → Obsidian.应用)
Quick 检查: obsidian version
Core Concepts file= — resolves like wikilinks (fuzzy, by note name) path= — exact path relative to vault root (e.g. Folder/Note.md) Most commands default to the active file when file/path is omitted vault= — tar获取 a specific vault (omit for default/only vault) Quote values with spaces: name="My Note" Use \n for newline, \t for tab in content values 输出 格式化s avAIlable on many commands: 格式化=json|tsv|csv|text|md Vault & File Discovery obsidian vaults # 列出 known vaults obsidian vaults verbose # include vault paths obsidian vault # active vault 信息 (name, path, files, folders, size) obsidian vault 信息=path # just the vault path
obsidian files # 列出 all files obsidian files folder="Projects" # 过滤器 by folder obsidian files ext=canvas # 过滤器 by 扩展 obsidian files total # file count
obsidian folders # 列出 folders obsidian folder path="Projects" 信息=files # folder 信息
obsidian recents # recently opened files
Reading & Writing Notes obsidian read file="Meeting Notes" # read by name obsidian read path="Projects/spec.md" # read by exact path
obsidian 创建 name="New Note" content="# Hello" open # 创建 + open obsidian 创建 path="Journal/idea.md" template="Default" overwrite
obsidian 应用end file="记录" content="- entry" # 应用end obsidian 应用end file="记录" content=" suffix" inline # 应用end without newline obsidian prepend file="记录" content="# Header" # prepend
obsidian 删除 file="Old Note" # trash obsidian 删除 path="tmp/scratch.md" permanent # permanent 删除
obsidian move file="Draft" to="归档/Draft.md" # move/rename obsidian rename file="Draft" name="Final" # rename in place
obsidian open file="Todo" newtab # open in new tab obsidian random # open random note obsidian random:read folder="Journal" # read random note from folder
搜索 obsidian 搜索 查询="project plan" # file-name 搜索 obsidian 搜索 查询="plan" path="Work" limit=5 # scoped, limited
obsidian 搜索:上下文 查询="API key" case # full-text with line 上下文 obsidian 搜索:上下文 查询="bug" 格式化=json # JSON 输出
DAIly Notes obsidian dAIly # open today's dAIly note obsidian dAIly:path # 获取 dAIly note path obsidian dAIly:read # read dAIly note contents obsidian dAIly:应用end content="- 3pm standup" # 应用end to dAIly obsidian dAIly:prepend content="## Morning" # prepend to dAIly
Tasks obsidian tasks # all tasks obsidian tasks todo # incomplete only obsidian tasks done # completed only obsidian tasks todo verbose # grouped by file with line numbers obsidian tasks file="Project" todo # tasks in specific file obsidian tasks dAIly todo # tasks from dAIly note obsidian tasks 状态="/" 格式化=json # custom 状态 过滤器
obsidian task file="Todo" line=5 toggle # toggle done/todo obsidian task file="Todo" line=5 done # mark done obsidian task file="Todo" line=5 todo # mark todo obsidian task dAIly line=3 toggle # toggle task in dAIly note
Properties / Frontmatter obsidian properties # all properties across vault obsidian properties file="Note" 格式化=yaml # properties for a file obsidian properties counts 排序=count # property usage stats
obsidian property:read name="状态" file="Task" # read property obsidian property:设置 name="状态" value="done" file="Task" obsidian property:设置 name="tags" value="work,urgent" type=列出 file="Task" obsidian property:移除 name="draft" file="Task"
Tags obsidian tags # all tags obsidian tags counts 排序=count # tag usage 排序ed by count obsidian tags file="Note" # tags in specific file obsidian tag name="project" verbose # tag 信息 with file 列出
Links & Graph obsidian links file="Hub" # outgoing links obsidian backlinks file="API" # incoming links obsidian backlinks file="API" counts # with link counts obsidian orphans # files with no incoming links obsidian deadends # files with no outgoing links obsidian unresolved # broke