kiln_signin_poll
Poll a pending sign-in using the returned device code to check whether authentication is pending, succeeded, denied, or expired, then continue only after completion.
Instructions
Check whether a sign-in started by kiln_signin is done.
Call this repeatedly (every ``interval`` seconds) with the
``device_code`` that ``kiln_signin`` returned. Each call is a
single HTTP round-trip (it does NOT block), so the agent stays
responsive and the user sees progress.
Returns ``{"status": "pending" | "success" | "denied" |
"expired", ...}``.
* ``pending`` — user hasn't finished in the browser yet;
wait ``interval`` seconds and call again.
* ``success`` — tokens have been written to
``~/.kiln/auth_tokens.json`` (mode 0600); the response
also echoes ``email`` and ``tier``. Every other Kiln tool
picks up the new session automatically.
* ``denied`` — user cancelled in the browser.
* ``expired`` — the device_code timed out (15 min window);
call ``kiln_signin`` again for a fresh code.
Free tier — no license key required.
:param device_code: The ``device_code`` that ``kiln_signin``
returned for this sign-in.
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": {
"device_code": "<device_code>"
},
"name": "kiln_signin_poll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device_code | Yes | The ``device_code`` that ``kiln_signin`` returned for this sign-in. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||