Create a browser guest link
guest_createCreates a time-limited browser guest grant for one proxy app, configures its guest gate and public Funnel exposure, and returns the bearer link only at creation.
Instructions
Owner-only: create a time-limited browser guest grant for one proxy app and configure its guest gate and enable public Funnel exposure (applied by the daemon). Returns grant metadata, a recipient message and configured edge state; the bearer link is hidden unless print_link is true and is only available at creation. Use guest_create for a new link; guest_show cannot recover an existing token. Requires public acknowledgement when first enabling the guest gate. The first link removes the app's home gateway route when only the owner and admins use it and reports it in removed_gateway_route; otherwise it refuses with portal_route_guest_refused and the command to run. No OIDC or tailnet account is required for the visitor. Makes no remote API calls; check status separately for live Funnel availability. Over HTTP MCP, a change to a public app (open Funnel, a lapsed Funnel that keeps its public acknowledgement, or guest links), including one that makes an app public or removes it, needs the current portal owner when one is configured or a home gateway is on, checked in the write transaction (access_request_owner_required).
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": {
"app": "<app>",
"for": "<for>"
},
"name": "guest_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| for | Yes | Relative lifetime (descending unique units w,d,h,m,s,ms,us,ns) or until <RFC3339|YYYY-MM-DD|YYYY-MM-DDTHH:MM>. Local unless offset given; DST gaps/folds require an offset. Minimum 1h. Presets: 1h, 8h, 24h, 3d, 7d. Default 24h; guest/public maximum defaults to 7d, configurable in durations.public_max. Never refused. Omission on add preserves an existing deadline. | |
| pin | No | Optional secret 6..64 digit PIN; never log it. | |
| label | No | ||
| public | No | ||
| print_link | No | Explicitly request the bearer link once; default output is masked. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | Yes | ||
| grant | Yes | ||
| message | Yes | ||
| edge_state | Yes | ||
| request_body_limit | Yes | Per-request upload cap guests meet (max_body_bytes, -1 for unlimited; message with the command that raises it). | |
| removed_gateway_route | Yes | Home gateway route this create removed (port, message); null when none was removed. |