Roles & Sessions
What is a Role?
Field
Description
Example: Role definition
{
"signer": {
"description": "An agent responsible for signing transactions using MetaMask.",
"tools": ["metamask.sign"],
"goals": [
"Sign prepared transactions securely",
"Ensure all transactions are reviewed before submission"
],
"guardrails": [
"Never initiate token transfers",
"Always explain what you're signing",
"Never deploy contracts"
]
}
}Starting a Role Session
What is a Session?
Switching Between Roles
Persistent vs Ephemeral Sessions
Mode
Behavior
Security via Role Boundaries
Debugging Sessions
Last updated