auth_mint_token
Mint a one-hour Firebase ID token and refresh token for an existing Auth emulator user so agents can call Functions or REST APIs as that user, with optional per-token claims.
Instructions
Mint a Firebase ID token (valid one hour) and refresh token for an existing Auth emulator user, so an agent can call a function or the REST API as that user; claims replace the custom claims for this token only.
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": {
"uid": "<uid>"
},
"name": "auth_mint_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | Account id | |
| claims | No | Custom claims for this token only (nothing is stored); omit for the user's own | |
| tenant | No | Tenant id; omit for a project-level user | |
| provider | No | Sign-in provider the token names, e.g. password or phone; default the user's first |