Agent Token Management
agent-tokensManage Sanctum access tokens for the authenticated user.
Actions: list (view all tokens), revoke (revoke a specific token by ID),
revoke-others (revoke all tokens except current), switch-account (get a token for a team account).
All actions require authentication.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": {
"action": "<action>"
},
"name": "agent-tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The token action: list, revoke, revoke-others, switch-account | |
| token_id | No | Token ID to revoke (required for revoke action) | |
| device_name | No | Device name for new token (optional for switch-account) | |
| token_expiry | No | Token expiry: 1_week, 1_month, 3_months, never (optional for switch-account) | |
| account_username | No | Username of the team account to switch to (required for switch-account) |