Access the typed client instance
Client instance
Error if used outside AppsProvider
function MyComponent() { const client = useAppsClient<typeof app.tools>(); const handleClick = async () => { await client.callTool("myTool", { arg: "value" }); }; return <button onClick={handleClick}>Call Tool</button>;} Copy
function MyComponent() { const client = useAppsClient<typeof app.tools>(); const handleClick = async () => { await client.callTool("myTool", { arg: "value" }); }; return <button onClick={handleClick}>Call Tool</button>;}
Access the typed client instance