Contents

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_children and notion_query_data_source are sent again freely; notion_create_page, notion_update_page_properties, notion_delete_page, notion_append_block_children and notion_update_block are writes, sent again only when Notion refused them before acting: the connection never opened, or Notion answered 425 or 429.
  • view_attachment defaults on. Other tool checkboxes default off; enable each one you need.
  • At least one checkbox must be enabled.

Checkboxes and emitted tools:

  • search → notion_search
  • content_search → notion_content_search
  • retrieve_page → notion_retrieve_page
  • create_page → notion_create_page
  • update_page_properties → notion_update_page_properties
  • delete_page → notion_delete_page
  • append_block_children → notion_append_block_children
  • update_block → notion_update_block
  • delete_block → notion_delete_block
  • list_block_children → notion_list_block_children
  • view_attachment → notion_view_attachment
  • query_data_source → notion_query_data_source

Inputs and Outputs#

  • input - triggers the node.
  • tools - array of externally tagged tool configs for AI Agent tools input.

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:

  • query string
  • object_filter enum: all, page, data_source
  • limit integer, 1-1000, default 50
  • start_cursor string

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:

  • query string

Optional:

  • limit integer, 1-1000, default 50
  • max_pages integer, 1-1000, default 25
  • max_blocks_per_page integer, 1-1000, default 200

notion_retrieve_page#

Returns page and attachments from the page's file properties.

Required:

  • page_id string

notion_create_page#

Required:

  • parent_kind enum: page, data_source, workspace

Optional:

  • parent_id string, required by Notion unless parent_kind is workspace
  • title string
  • markdown string
  • properties object

notion_update_page_properties#

Required:

  • page_id string
  • properties object

notion_delete_page#

Required:

  • page_id string

Moves the page to trash using Notion in_trash: true.

notion_append_block_children#

Required:

  • block_id string
  • children array

notion_update_block#

Required:

  • block_id string
  • block object

notion_delete_block#

Required:

  • block_id string

notion_list_block_children#

Returns the child results, pagination fields and attachments from the file blocks in that page of results.

Required:

  • block_id string

Optional:

  • limit integer, 1-1000, default 50
  • start_cursor string

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_id string

Optional:

  • filter object
  • sorts array
  • limit integer, 1-1000, default 50
  • start_cursor string

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, or data_source_id.
  • Use notion_content_search when 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 by max_pages and max_blocks_per_page.

Inputs

  • inputRequired

Outputs

  • tools

Configuration

FieldTypeRequiredDescription
connectionconnection(notion)YesNotion connection used by emitted tools
searchbooleanNoEmit notion_search
content_searchbooleanNoEmit notion_content_search
retrieve_pagebooleanNoEmit notion_retrieve_page
create_pagebooleanNoEmit notion_create_page
update_page_propertiesbooleanNoEmit notion_update_page_properties
delete_pagebooleanNoEmit notion_delete_page
append_block_childrenbooleanNoEmit notion_append_block_children
update_blockbooleanNoEmit notion_update_block
delete_blockbooleanNoEmit notion_delete_block
list_block_childrenbooleanNoEmit notion_list_block_children
view_attachmentbooleanNoEmit notion_view_attachment
query_data_sourcebooleanNoEmit notion_query_data_source
retrytagged_unionNoSends a request again after a failure that passes: a rate limit, a busy server, a dropped connection. Off sends once.
base_configrecordNoShared 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).