get_principal_id
Retrieve the authenticated agent's Principal ID to verify identity, detect anonymous sessions, and trigger login when required.
Instructions
Returns the Principal ID of the authenticated agent. Check if the result is anonymous (2vxsx-fae) and call icp_login if needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||