Notion Tools
notion_tools · Nodes · AI
Makes Notion tools available to AI steps.
Notion Tools#
Emits AI-callable Notion tools for AI Agent nodes. It does not call the Notion API when the node runs; API calls happen only if the AI model invokes an emitted tool.
Configuration#
connection- Notion connection used by every emitted tool.retry- whether each Notion request a tool makes is sent again after a failure that passes: a rate limit, a busy server, a dropped connection. Off by default; see Retries.notion_search,notion_content_search,notion_retrieve_page,notion_delete_block,notion_list_block_childrenandnotion_query_data_sourceare sent again freely;notion_create_page,notion_update_page_properties,notion_delete_page,notion_append_block_childrenandnotion_update_blockare writes, sent again only when Notion refused them before acting: the connection never opened, or Notion answered 425 or 429.view_attachmentdefaults on. Other tool checkboxes default off; enable each one you need.- At least one checkbox must be enabled.
Checkboxes and emitted tools:
search→notion_searchcontent_search→notion_content_searchretrieve_page→notion_retrieve_pagecreate_page→notion_create_pageupdate_page_properties→notion_update_page_propertiesdelete_page→notion_delete_pageappend_block_children→notion_append_block_childrenupdate_block→notion_update_blockdelete_block→notion_delete_blocklist_block_children→notion_list_block_childrenview_attachment→notion_view_attachmentquery_data_source→notion_query_data_source
Inputs and Outputs#
input- triggers the node.tools- array of externally tagged tool configs for AI Agenttoolsinput.
Example wiring:
{
"edges": [
{ "from": ["notion-tools", "tools"], "to": ["ai-agent", "tools"] }
]
}
Tool names#
Every emitted tool is called <handle>__<tool>, where <handle> is the fixed handle of the
configured Notion connection, for example notion__notion_search. The prefix is there even when
the workspace has a single Notion connection. Renaming the connection never changes it. A name
longer than 64 characters keeps its first 55 characters and ends with _ and an 8-character hash.
The headings below are the <tool> part.
Tool Parameters#
Optional parameters may be omitted or passed as null. null has the same effect as omission.
notion_search#
Searches shared Notion pages and data sources by title/name using Notion REST /v1/search.
Required: none.
Optional:
querystringobject_filterenum:all,page,data_sourcelimitinteger, 1-1000, default50start_cursorstring
notion_content_search#
Searches text inside shared Notion pages. It enumerates shared pages, fetches page blocks, and returns matching page IDs with snippets. Use this when the user asks for a policy, procedure, note, or other document by content rather than title.
Required:
querystring
Optional:
limitinteger, 1-1000, default50max_pagesinteger, 1-1000, default25max_blocks_per_pageinteger, 1-1000, default200
notion_retrieve_page#
Returns page and attachments from the page's file properties.
Required:
page_idstring
notion_create_page#
Required:
parent_kindenum:page,data_source,workspace
Optional:
parent_idstring, required by Notion unlessparent_kindisworkspacetitlestringmarkdownstringpropertiesobject
notion_update_page_properties#
Required:
page_idstringpropertiesobject
notion_delete_page#
Required:
page_idstring
Moves the page to trash using Notion in_trash: true.
notion_append_block_children#
Required:
block_idstringchildrenarray
notion_update_block#
Required:
block_idstringblockobject
notion_delete_block#
Required:
block_idstring
notion_list_block_children#
Returns the child results, pagination fields and attachments from the file blocks in that page of results.
Required:
block_idstring
Optional:
limitinteger, 1-1000, default50start_cursorstring
notion_view_attachment#
Opens a file listed by notion_retrieve_page or notion_list_block_children. Pass the original
page_id or block_id as parent_id and the listed attachment_id.
See View Notion Attachment.
notion_query_data_source#
Required:
data_source_idstring
Optional:
filterobjectsortsarraylimitinteger, 1-1000, default50start_cursorstring
Caveats#
- The selected connection can only access pages, blocks, and data sources shared with it.
- IDs must be exact Notion IDs. URLs and names are not resolved.
- Search first when the user gives a title/name or vague target, then call the exact-ID tool with the selected
page_id,block_id, ordata_source_id. - Use
notion_content_searchwhen the user asks about text likely inside a page, for example “What is our leave policy?”. It only searches pages shared with the selected connection and is bounded bymax_pagesandmax_blocks_per_page.
Inputs
inputRequired
Outputs
tools
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
connection | connection(notion) | Yes | Notion connection used by emitted tools |
search | boolean | No | Emit notion_search |
content_search | boolean | No | Emit notion_content_search |
retrieve_page | boolean | No | Emit notion_retrieve_page |
create_page | boolean | No | Emit notion_create_page |
update_page_properties | boolean | No | Emit notion_update_page_properties |
delete_page | boolean | No | Emit notion_delete_page |
append_block_children | boolean | No | Emit notion_append_block_children |
update_block | boolean | No | Emit notion_update_block |
delete_block | boolean | No | Emit notion_delete_block |
list_block_children | boolean | No | Emit notion_list_block_children |
view_attachment | boolean | No | Emit notion_view_attachment |
query_data_source | boolean | No | Emit notion_query_data_source |
retry | tagged_union | No | Sends a request again after a failure that passes: a rate limit, a busy server, a dropped connection. Off sends once. |
base_config | record | No | Shared node configuration. failure_mode decides what a failure of this node does to the workflow; leave it at the default stop unless the workflow handles the failure itself on the node's error output (route_to_error) or the node is a rare emergency kill switch (stop_workflow). |