Set devices authorized (bulk)
tailscale_set_devices_authorizedAuthorize or deauthorize multiple Tailscale devices in one call, returning per-device successes and failures so you can batch-enroll CI hosts or revoke flagged devices without losing partial results.
Instructions
Authorize or deauthorize multiple devices in one call. Each device's POST runs in parallel; per-device errors are returned alongside the successes so a partial failure doesn't lose the work that succeeded. On partial failure the call still returns success (ok) with data: { authorized, succeeded, failed } -- inspect data.failed for the per-device errors. POSTs are never retried, so on a large batch a rate-limited device lands in data.failed with status 429: re-call with just those ids, or set TAILSCALE_MAX_CONCURRENT to cap requests in flight. Common use: authorize a batch of newly-enrolled CI hosts, or deauthorize a group of devices flagged by a security review.
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": {
"deviceIds": "<deviceIds>",
"authorized": "<authorized>"
},
"name": "tailscale_set_devices_authorized"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deviceIds | Yes | Device IDs to update (nodeIds preferred; legacy numeric ids also work) | |
| authorized | Yes | true to authorize, false to deauthorize |