Page context
Tell the agent about the current page so it can give context-aware answers:Automatic DOM capture limits: 80 links, 30 headings, 30 buttons, 20 form fields, 8000 characters of text content.
Registering client-side tools
Register JavaScript functions that the agent can invoke during a conversation. The agent calls these via the built-ininvoke_client_tool bridge:
Subscribing to tool results
Listen for server-side tool invocations (knowledge retrieval, custom actions, workflows):Custom tool renderers
Override how specific tools appear in the chat UI:text property displayed as a status message in the chat.