lkj1234567
03/10/2025, 10:50 PMVapi Support Bot
03/10/2025, 10:52 PMjson
{
"results": [
{
"toolCallId": "call_Example",
"result": "12345" // Just the mc_number value here, not a nested object
}
]
}
The key is ensuring that the result
field contains only the value you want (the mc_number), not an object [source](https://docs.vapi.ai/tools-calling).
2. You'll likely need to implement server-side logic to extract just the "mc_number" from your data before sending the response back to Vapi.
Regarding the "body" parameter you mentioned - I couldn't find specific documentation about using a "body" parameter to select fields in Vapi tool calls. The current documentation focuses more on overall JSON structure and server interactions.
Let me know if you need more help with implementing this solution! 😊
Sources:
- [Vapi Tools Calling Documentation](https://docs.vapi.ai/tools-calling)
- [Discord Channel Discussion on JSON Formatting](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334658296291921920)
- [Discord Channel Discussion on Tool Call Issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1338507206051627073)lkj1234567
03/11/2025, 12:04 AMKyle Brunker
03/12/2025, 6:50 PM