Implement client-side vapi tool handler#769
Merged
sahilsuman933 merged 3 commits intomainfrom Oct 28, 2025
Merged
Conversation
Explain handling tool-calls in-browser without server URL, clarify that client tools cannot return results to the model, and show how to inject context via addMessage. Includes complete React example and next steps to server-based tools.
Use <YOUR_PUBLIC_KEY> to avoid leaking credentials in example.
Expose new page at /tools/client-side-websdk under Tools section.
|
Cursor Agent can help with this pull request. Just |
Contributor
|
🌿 Preview your docs: https://vapi-preview-f994d1f9-9e17-4193-a1a3-733e41267504.docs.buildwithfern.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
vapi.start()configuration without aserverUrl, making it a client-side tool.tool-callsmessages viavapi.on('message')to trigger client-side UI updates.vapi.addMessageto inject additional context into the conversation.Testing Steps
fern docs devor navigate to preview deployment