guildai~get_self returns the calling agent’s own identity — agent details, running version, session context, and workspace — in a single idempotent call. No parameters are required; the runtime resolves identity automatically from execution context.
The primary use case is attribution: call guildai_get_self just before posting to an external system — a pull request comment, Slack message, or Jira ticket — to attach accurate source information without threading identity details through prompts or agent inputs.
guildai_get_self is automatically available to every running agent. No tool set import or credential configuration is required.
Response payload
agent fields
version fields
session fields
workspace fields
owner fields
Both agent.owner and workspace.owner share this shape.
Attribution example
Call guildai_get_self once at the start of any run that will post to an external service, then reuse the result for each outbound action:
guildai_get_self is cheap and idempotent. Call it once per run and reuse the result across all external actions in the same agent invocation.