set_bearer_token
Set or refresh a bearer token for an AKHQ environment to resolve expired or unauthorized token errors.
Instructions
Set or refresh the bearer token for an AKHQ environment. Use this when a request fails with an expired/unauthorized token error.
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": {
"environment": "<environment>",
"token": "<token>"
},
"name": "set_bearer_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| token | Yes | The new bearer token | |
| environment | Yes | The environment name to set the token for |