Skip to main content

Tools & Connectors Exports

// Custom tools
import { createTool } from '@runflow-ai/sdk';

// Connectors
import { createConnectorTool, connector } from '@runflow-ai/sdk';

// Web Search
import { webSearch, createWebSearchTool } from '@runflow-ai/sdk';
import type { WebSearchConfig, WebSearchResponse, WebSearchResult, WebSearchProvider } from '@runflow-ai/sdk';

// Schedule
import { schedule, createScheduleTools } from '@runflow-ai/sdk';
import type { ScheduleCreateConfig, ScheduleUpdateConfig, ScheduleResponse } from '@runflow-ai/sdk';

Connectors

ExportTypeDescription
connector(name, resource, data, options?)FunctionDirect invocation. name resolves to an instance slug first, then falls back to a template slug when the template has authRequired = false (e.g. JSONPlaceholder, public OpenAPI imports).
createConnectorTool({ connector, resource, ... })FunctionWrap a connector as an agent tool. Same instance-then-template resolution.
loadConnector(slug)FunctionForce-preload a connector schema before first call.
See Connectors → Public APIs for the no-auth template shortcut.
ExportTypeDescription
webSearch(query, config?)FunctionProgrammatic web search
createWebSearchTool(config?)FunctionCreate a search tool for agents

Schedule

ExportTypeDescription
schedule.create(config)FunctionCreate a scheduled execution
schedule.list()FunctionList active schedules
schedule.update(id, config)FunctionUpdate a schedule
schedule.cancel(id)FunctionCancel a schedule
createScheduleTools()FunctionCreate 4 schedule tools for agents

Next Steps

Web Search Guide

Detailed web search documentation

Schedule Guide

Detailed schedule documentation

Core

View core exports

Workflows

View workflow exports