Create API token
gameye_create_tokenCreates a Gameye API token and writes it to an absolute file path with restricted permissions, supporting scopes, expiry, and dry-run previews.
Instructions
Admin tool. Create a Gameye API token and write it to a file; the token value is never returned. outputPath must be an absolute path outside any git working tree; an existing file is refused unless overwrite=true, and symlinks are always refused. The file is created with 0600 permissions. expires_after defaults to 24h. Requested scopes must be a subset of this server's token scopes (webhook:github is the one exception). Needs the token:write scope. Pass dryRun=true to preview the request. Needs GAMEYE_API_TOKEN; without one, returns setup steps and sends nothing.
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": {
"name": "<name>",
"scopes": "<scopes>",
"outputPath": "<outputPath>"
},
"name": "gameye_create_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Token name | |
| dryRun | No | Check outputPath and return the request that would be sent; create nothing | |
| scopes | Yes | Scopes for the new token, e.g. ['session:read'] | |
| overwrite | No | Replace an existing regular file at outputPath | |
| outputPath | Yes | Absolute path of the file to write the token to | |
| expires_after | No | Lifetime such as '1h' or '2h30m' (units m and h). Defaults to 24h |