The shape
Your server creates the call; your browser joins it. That split is what keeps your API key private.1. Your server endpoint
2. Join from the browser
Start this from a real click. Browsers deny microphone permission far more
often when it’s requested on page load, and they block audio playback entirely
until the user has interacted with the page.
3. A client tool that drives the UI
Define the tool withtype: "client" — no URL, because nothing is being called
over HTTP:
Client tool parameters have no
location — nothing is being placed into an
HTTP request.invocationId.
4. Feed the agent context mid-call
sendText injects text as though the user had said it. With deferResponse,
the agent absorbs it without being prompted to reply:
5. Controls
React
HTTP or client?
SDK reference
Every method and event.
Client tools
The protocol, with and without the SDK.