Skip to content

Commit 6a2e1a2

Browse files
committed
added reference
1 parent 13fa708 commit 6a2e1a2

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

fern/tools/custom-tools.mdx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,6 @@ When your server receives a tool call request from Vapi, it will be in the follo
101101
"message": {
102102
"timestamp": 1678901234567,
103103
"type": "tool-calls",
104-
"toolCalls": [
105-
{
106-
"id": "toolu_01DTPAzUm5Gk3zxrpJ969oMF",
107-
"name": "get_weather",
108-
"arguments": {
109-
"location": "San Francisco"
110-
}
111-
}
112-
],
113104
"toolCallList": [
114105
{
115106
"id": "toolu_01DTPAzUm5Gk3zxrpJ969oMF",
@@ -169,6 +160,11 @@ When your server receives a tool call request from Vapi, it will be in the follo
169160
}
170161
```
171162

163+
<Note>
164+
For the complete API reference, see [ServerMessageToolCalls Type Definition](https://github.com/VapiAI/server-sdk-typescript/blob/main/src/api/types/ServerMessageToolCalls.ts#L7).
165+
</Note>
166+
167+
172168
## Server Response Format: Providing Results and Context
173169

174170
When your Vapi assistant calls a tool (via the server URL you configured), your server will receive an HTTP request containing information about the tool call. Upon processing the request and executing the desired function, your server needs to send back a response in the following JSON format:

0 commit comments

Comments
 (0)