工具 API
notion-search
在以下内容上执行搜索: - "internal": 对 Notion 工作区及已连接来源(Slack、Google Drive、Github、Jira、Microsoft Teams、Sharepoint、OneDrive、Linear)进行语义搜索。支持按创建日期和创建者筛选。 - "user": 按姓名或邮箱搜索用户。 根据用户对 Notion AI 的访问权限自动选择 AI 搜索(带已连接来源)或工作区搜索(仅工作区,速度更快)。使用 content_search_mode 可覆盖此默认行为。获取搜索结果后,使用"fetch"工具获取完整页面/数据库内容。每个结果的"url"字段包含 Notion 结果的页面 ID(直接传递给 fetch 工具的"id"参数)或外部连接器结果(Slack、Google Drive 等)的完整 URL。尽可能将 page_size(默认 10,最大 25)和 max_highlight_length(默认 200,0 为省略)设置得较低以最小化响应大小。 若要在数据库中搜索:首先获取数据库以从 <data-source url="..."> 标签获取数据源 URL(collection://...),然后将其用作 data_source_url。对于多源数据库,按 URL 中的视图 ID(?v=...)匹配或分别搜索所有来源。 勿将数据库 URL/ID 与 collection:// 前缀组合用于 data_source_url。勿将数据库 URL 用作 page_url。
调用信息
- 工具标识
- notion-mcp-server.notion-search
- 服务提供方
- Notion
- 平均响应
- 3270 ms
- 近 7 天调用
- 2
输入参数
query必填Semantic search query over your entire Notion workspace and connected sources (Slack, Google Drive, Github, Jira, Microsoft Teams, Sharepoint, OneDrive, or Linear). For best results, don't provide more than one question per tool call. Use a separate "search" tool call for each search you want to perform. Alternatively, the query can be a substring or keyword to find users by matching against their name or email address. For example: "john" or "john@example.com"
query_typestring
content_search_modestring
data_source_urlOptionally, provide the URL of a Data source to search. This will perform a semantic search over the pages in the Data Source. Note: must be a Data Source, not a Database. <data-source> tags are part of the Notion flavored Markdown format returned by tools like fetch. The full spec is available in the create-pages tool description.
page_urlOptionally, provide the URL or ID of a page to search within. This will perform a semantic search over the content within and under the specified page. Accepts either a full page URL (e.g. https://notion.so/workspace/Page-Title-1234567890) or just the page ID (UUIDv4) with or without dashes.
teamspace_idOptionally, provide the ID of a teamspace to restrict search results to. This will perform a search over content within the specified teamspace only. Accepts the teamspace ID (UUIDv4) with or without dashes.
filters必填Optionally provide filters to apply to the search results. Only valid when query_type is 'internal'.
page_sizeMaximum number of results to return (default 10). Lower values reduce response size.
max_highlight_lengthMaximum character length for result highlights (default 200). Set to 0 to omit highlights entirely.