issue_credential
Issue a root credential for task workflows to grant scoped authority from a human user to an agent, enabling secure delegation without multiple unrelated credentials.
Instructions
Issue a new root credential for a task. Use this at the start of a workflow when an orchestrator or top-level agent needs explicit scoped authority tied to a human user and instruction. Returns a signed JWT plus claims including the task tree ID; use delegate_credential for child agents instead of issuing multiple unrelated root credentials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Agent identifier | |
| user_id | Yes | Human principal who authorized the task | |
| scope | Yes | Permission scopes, e.g. ["email:send"] | |
| instruction | Yes | Task instruction | |
| ttl_seconds | No | Token lifetime in seconds (default 3600, max 86400) |