Wait for the user to finish setup
wait_for_setupAfter place_call returned needs_setup and the user has SEEN the link: wait for them to finish it. If your client only shows your reply when your turn ends (ChatGPT), end your turn with the link first and call this after the user replies. Returns as soon as they're done and places the call right then (status "calling" with call_id, and account_key to save), so the user never has to say "done". Waits up to wait_seconds (max 50). If it returns status "waiting_for_setup", call it again. Setup links expire after 24 hours.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"setup_code": "<setup_code>"
},
"name": "wait_for_setup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| setup_code | Yes | The setup_code from needs_setup, e.g. "QF6S-2U4Z" | |
| account_key | No | Only for clients without OAuth: the cfm_ API key (from the account page or an earlier setup). Leave out when connected with OAuth. | |
| wait_seconds | No | How long to wait, max 50 (larger values are capped). Default 50. |