create_worker_token
Create a one-hour worker token scoped to a specific user by providing their email or user ID. Requires a service-account API key.
Instructions
Mint a one-hour user-scoped worker token (POST /v1/sub-tokens).
Requires a service-account API key. Provide exactly one of email or user id. The accessToken value is redacted in the tool result.
Args: for_user_email: Active team member email. for_user_id: Active team member numeric user id.
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": "create_worker_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| for_user_id | No | ||
| for_user_email | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||