Skip to main content
Toolkits package multiple related custom tools as one JavaScript or TypeScript module. AgentFlow validates the module, extracts its tool definitions, and imports them into the tenant tool catalog with source="toolkit". Use a toolkit when several tools share one module and should be versioned, exported, or removed together. Use client.agents.tools.create(...) for a single persisted custom tool, and use MCP servers for remotely hosted protocol tools.
Validation never imports or assigns tools. Import is tenant-admin scoped and adds the parsed definitions to the tenant catalog; assign them to agents afterward. Export returns the stored module; uninstall removes every tool owned by that toolkit, so inspect dependencies before uninstalling it. Toolkit validation and execution require the deployment’s Deno sandbox runtime. If that runtime is unavailable, validation fails without importing anything. See SDK: Toolkits and the Toolkits API reference.