Provision agent token
token.provisionObtain a 12-hour ngsrv agent token for tunnel commands. Uses NGSRV_API_TOKEN when available; otherwise starts a free device trial. Returns token_prefix and expiry.
Instructions
Obtain a 12-hour ngsrv agent token for tunnel commands. Uses NGSRV_API_TOKEN when set; otherwise starts a free device trial (no signup). Returns token_prefix and expiry — not the full secret.
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": "token.provision"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refresh | No | When true, request a new trial token even if NGSRV_API_TOKEN is already set. |