跳到正文
所有工具

obsidian_search_notes

Obsidian · macOS · Windows

效果: 读取. 状态: 受限可用.

“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。

macOS

用途

按文本(`query`:笔记标题和文本,不区分大小写)、按标签(`tag`:行内 #tags 和 frontmatter 标签;标签也会匹配其嵌套标签)或两者,搜索 Obsidian 保险库中的笔记。返回每篇笔记在保险库内的路径、标题、第一条匹配行和标签,按路径排序,每页 `limit` 条;当 has_more 为 true 时,将 next_offset 作为 `offset` 传入以获取下一页。读取 Markdown 文件:Obsidian 无需处于运行状态。

必填输入

此平台的架构未声明必填输入,但仍可能存在可选选择器或运行时要求。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构 — macOS
{
  "properties": {
    "limit": {
      "description": "Notes per page (default 20, max 100).",
      "type": "integer"
    },
    "offset": {
      "description": "Notes to skip (default 0): the next_offset of the previous page.",
      "type": "integer"
    },
    "query": {
      "description": "Text to find in note titles and text. Optional when `tag` is given.",
      "type": "string"
    },
    "tag": {
      "description": "Tag to match, with or without #. Optional when `query` is given.",
      "type": "string"
    },
    "vault": {
      "description": "Vault name or id from obsidian_list_vaults. Optional when there is only one vault.",
      "type": "string"
    }
  },
  "required": [],
  "type": "object"
}

文档示例

obsidian_search_notes 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "limit": 20,
  "query": "launch checklist",
  "tag": "project",
  "vault": "Demo Vault"
}

Windows

用途

按文本(`query`:笔记标题和文本,不区分大小写)、按标签(`tag`:行内 #tags 和 frontmatter 标签;标签也会匹配其嵌套标签)或两者,搜索 Obsidian 保险库中的笔记。返回每篇笔记在保险库内的路径、标题、第一条匹配行和标签,按路径排序,每页 `limit` 条;当 has_more 为 true 时,将 next_offset 作为 `offset` 传入以获取下一页。读取 Markdown 文件:Obsidian 无需处于运行状态。

必填输入

此平台的架构未声明必填输入,但仍可能存在可选选择器或运行时要求。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构 — Windows
{
  "properties": {
    "limit": {
      "description": "Notes per page (default 20, max 100).",
      "type": "integer"
    },
    "offset": {
      "description": "Notes to skip (default 0): the next_offset of the previous page.",
      "type": "integer"
    },
    "query": {
      "description": "Text to find in note titles and text. Optional when `tag` is given.",
      "type": "string"
    },
    "tag": {
      "description": "Tag to match, with or without #. Optional when `query` is given.",
      "type": "string"
    },
    "vault": {
      "description": "Vault name or id from obsidian_list_vaults. Optional when there is only one vault.",
      "type": "string"
    }
  },
  "required": [],
  "type": "object"
}

文档示例

obsidian_search_notes 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "limit": 20,
  "query": "launch checklist",
  "tag": "project",
  "vault": "Demo Vault"
}