
Create Client Tool
Scaffolds a new AtlasTool for the Atlas agent framework and wires it into your useAtlasChat hook. This handles the full setup: TypeBox schema definition, the execute function that runs browser-side logic, and adding it to the tools array. Assumes you've already run integrate-atlas-chat to vendor the agent sources and dependencies. Useful when you need the agent to trigger client-side actions like rendering charts, querying local state, or showing UI panels. The skill walks through reading your existing setup, writing the typed tool constant, and optionally rendering structured results from toolCalls. It's opinionated about TypeBox for validation, which keeps runtime and compile-time types in sync but locks you into that stack.
- skills.sh installs
- 1.9K
- GitHub stars
- 6
- last updated
- Aug 21, 2026
Install
$ npx -y skills add cognitedata/builder-skills --skill create-client-tool --agent claude-codeInstalls into .claude/skills of the current project.
Files
Create a Client Tool
Scaffold an AtlasTool named $ARGUMENTS. If the app has no approved in-app useAtlasChat, implement a Fusion action via integrate-fusion-agent instead.
Prerequisite: vendored src/atlas-agent/ and @sinclair/typebox from integrate-atlas-chat.
Background
Client tools let the Atlas Agent invoke browser-side logic — charts, local state, UI panels, navigation. The agent decides when to call; the app executes and returns a result.
- Agent responds with a
clientToolaction - TypeBox validates the arguments
execute()runs in the browser and returns{ output, details }output(string) is sent back to the agentdetailsis available onmessage.toolCallsfor the UI to render
Step 1 — Understand the codebase
Before writing anything, read:
- The file where
useAtlasChatis called (oftensrc/App.tsxor a chat hook) to find wheretoolsis passed — imports are typically from./atlas-agent/reactafterintegrate-atlas-chat - Any existing tool definitions to match the file/naming conventions
Step 2 — Define the tool
Sponsors
Details
- Repository
- github.com/cognitedata/builder-skills
- Categories
- AI & Agent Building, Automation & Workflows
- First seen
- Jun 3, 2026
More from cognitedata/builder-skills
All 26- Pull Changes Resolve Conflicts1.9K
- Use Topbar1.9K
- Migrate App To Flows1.7K
- Integrate Fusion Agent1.7K
- Flows Code Review1.6K
- Flows Design Review1.1K
- Flows App Brief1.1K
- Flows External App Submit1.1K
- Flows App Review298
- Skill Creator2.5K
- Code Quality2K
- Test Coverage1.9K
- Dependencies Audit1.9K
- Design1.9K
- Reveal 3d1.9K
- Integrate Todo List1.9K
- Correctness And Error Handling1.9K
- Dm Limits And Best Practices1.9K
- Integrate Atlas Chat1.9K
- Integrate File Viewer1.9K
- Security1.9K
- Setup Python Tools1.9K
- Graph Viewer1.9K
- Setup Flows Auth1.9K