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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_principal_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||