Session status
ucode_session_statusCheck whether this ChatGPT session is linked to Ucode. Use at chat start; if connected is false, run ucode_render_home — do not process rental requests. If they already have a live number, the card shows it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ucode_session_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| code | No | ||
| data | No | ||
| error | No | ||
| phone | No | ||
| uiView | No | ||
| credits | No | ||
| endDate | No | ||
| smsCode | No | ||
| summary | Yes | ||
| rentalId | No | ||
| billingUrl | No | ||
| httpStatus | No | ||
| countryName | No | ||
| phoneNumber | No | ||
| serviceName | No | ||
| neededCredits | No | ||
| providerRentalId | No | ||
| remainingSeconds | No |