nyx_exchange_identity
Exchange an agent identity for a delegated OIDC access token to call APIs on behalf of a user without long-lived credentials. Keeps actions auditable while preserving user identity claims.
Instructions
Exchange the agent's NyxID identity for a delegated access token bound to a downstream OIDC service (RFC 8693 token exchange). Lets the agent call APIs on behalf of a specific user without holding that user's long-lived credentials. The returned token carries the original user's identity claims while remaining auditable as an agent action.
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": {
"audience": "<audience>",
"subject_user": "<subject_user>"
},
"name": "nyx_exchange_identity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scope | No | Space-separated OAuth scopes to request on the exchanged token. Must be a subset of what the subject_user has approved for this agent. | |
| audience | Yes | Target downstream service identifier (resource URI or audience claim) the exchanged token should be valid for. | |
| ttl_secs | No | Requested token lifetime in seconds. Bounded by the audience's configured maximum (typically 900-3600 seconds). | |
| subject_user | Yes | User ID or email of the principal whose identity the agent is acting on behalf of. Must already exist in NyxID and have granted the agent delegation rights. |