Can I make local tool calls with the vapi web sdk?
Not seeing any docs for local tool calls
eg the agent sends a message to the web sdk to tell the browser to call a tool and what params to use
Example
{
"tool_call": {
"name": "do_something",
"params": {
"key": "value"
}
}
}
then the client makes the tool call and returns a result to the agent
{
"tool_call_result": {
"name": "do_something",
"result": {
"success": "true"
}
}
}
eg the agent sends a message to the web sdk to tell the browser to call a tool and what params to use
Example
{
"tool_call": {
"name": "do_something",
"params": {
"key": "value"
}
}
}
then the client makes the tool call and returns a result to the agent
{
"tool_call_result": {
"name": "do_something",
"result": {
"success": "true"
}
}
}