Wait for the user to finish the link
wait_for_setupAfter send_letter returned needs_setup or awaiting_approval and the user can SEE the link: waits up to 50 s for them to pay or approve, and returns as soon as they do (the letter is then on its way, plus account_key once if you had no account). If it returns "waiting_for_setup", call it again. If your client only shows replies when your turn ends (ChatGPT), end your turn with the link and call this after the user replies.
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 | From send_letter, e.g. "QF6S-2U4Z" | |
| wait_seconds | No | Max 50 |