How can I get the call ID injected into an apiRequest type tool call?
Hi - I've got an apiRequest tool (tool ID = c1c55b1e-194a-41af-b4a8-7ec131affc16), and I've attempted to inject the call ID via variables into the tool headers (see screenshot) as was shown in the docs. However, when I log the headers on my side, this is coming through as a static string, not a dynamic variable:
Here's a call where I tried this: 019a3588-5dbd-7664-a5b0-6825a1a91fb0, and here's the actual tool call message:
{
"role": "tool_calls",
"time": 1761834733663,
"message": "",
"toolCalls": [
{
"id": "call_Jv4pNjbyt2DmdZF9SUGwQSYq",
"type": "function",
"function": {
"name": "LOCAL-axe-lo-call_axe_server",
"arguments": "{"order_id": "4072"}"
}
}
],
"secondsFromStart": 8.478
}
I would have expected my server to log the actual call ID rather than the static string
Is there a more correct way to do this?
"x-call-id": "{{call.id}}"Here's a call where I tried this: 019a3588-5dbd-7664-a5b0-6825a1a91fb0, and here's the actual tool call message:
{
"role": "tool_calls",
"time": 1761834733663,
"message": "",
"toolCalls": [
{
"id": "call_Jv4pNjbyt2DmdZF9SUGwQSYq",
"type": "function",
"function": {
"name": "LOCAL-axe-lo-call_axe_server",
"arguments": "{"order_id": "4072"}"
}
}
],
"secondsFromStart": 8.478
}
I would have expected my server to log the actual call ID rather than the static string
{{call.id}}.Is there a more correct way to do this?
