Skip to main content
When a request involves an agent-linked client, the Actions runtime exposes an event.agent object. The object is absent when no agent is involved, so existing Actions code is unaffected.

Triggers

event.agent is present in the following triggers:

event.agent object

The event.agent object has the following schema:
event.client is unchanged; it continues to reflect the linked OAuth client that authenticated the request.

Example: custom claims on agent tokens

Use event.agent in a credentials-exchange Action to add agent context to access tokens:
To learn more about writing Actions, read Write Your First Action.