Files
copilotkit--copilotkit/showcase/integrations/claude-sdk-python/docs/setup/frontend-tools-setup.mdx
T
2026-07-13 12:58:18 +08:00

17 lines
490 B
Plaintext

<Steps>
<Step>
### Forward browser tools to Claude
Frontend tools registered with `useFrontendTool` arrive in the AG-UI run
input. Convert each AG-UI tool definition into an Anthropic Messages API
tool schema before calling the model. Runs that carry frontend tools use
the direct Messages API path rather than the Claude Agent SDK.
<DemoCode
file="src/agents/agent.py"
region="frontend-tools-setup"
highlight="23-29"
/>
</Step>
</Steps>