Skip to content

Commit 967fba3

Browse files
committed
fix Function tool webhook example
1 parent 9d52cde commit 967fba3

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

‎fern/tools/custom-tools.mdx‎

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -188,25 +188,30 @@ When your server receives a tool call request from Vapi, it will be in the follo
188188
"toolCallList": [
189189
{
190190
"id": "toolu_01DTPAzUm5Gk3zxrpJ969oMF",
191-
"name": "get_weather",
192-
"arguments": {
193-
"location": "San Francisco"
191+
"type": "function",
192+
"function": {
193+
"name": "get_weather",
194+
"arguments": {
195+
"location": "San Francisco"
196+
}
194197
}
195198
}
196199
],
197200
"toolWithToolCallList": [
198201
{
199202
"type": "function",
200-
"name": "get_weather",
201-
"parameters": {
202-
"type": "object",
203-
"properties": {
204-
"location": {
205-
"type": "string"
203+
"function": {
204+
"name": "get_weather",
205+
"parameters": {
206+
"type": "object",
207+
"properties": {
208+
"location": {
209+
"type": "string"
210+
}
206211
}
207-
}
212+
},
213+
"description": "Retrieves the current weather for a specified location"
208214
},
209-
"description": "Retrieves the current weather for a specified location",
210215
"server": {
211216
"url": "https://api.openweathermap.org/data/2.5/weather"
212217
},
@@ -216,7 +221,7 @@ When your server receives a tool call request from Vapi, it will be in the follo
216221
"type": "function",
217222
"function": {
218223
"name": "get_weather",
219-
"parameters": {
224+
"arguments": {
220225
"location": "San Francisco"
221226
}
222227
}

0 commit comments

Comments
 (0)