haops_create_role_template
Create admin-defined role templates for agents, specifying base role, markdown body, and optional default skills. Returns the created template.
Instructions
Create a new agent role template (admin-only, requires composed-protocols feature flag). Templates are system-wide (no project scope) and always start at version=1, isCurrent=true, isSystem=false. baseBody is admin-trusted markdown. defaultSkills is the optional bundle of skill IDs auto-enabled when projects adopt the template (required: true makes the skill non-disable-able). Returns the created template row.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Kebab-case template name (1..100 chars, starts with a letter). Must be unique among current (non-deleted) templates. | |
| verbose | No | If true, return the full API response instead of the compact summary (default: false) | |
| baseBody | Yes | Verbatim markdown for the boot/scope/handoff section. Non-empty. Admin-trusted (no sanitization). | |
| baseRole | Yes | Base role bucket the template extends. | |
| description | No | Optional short description shown in lists. Pass null to leave empty. | |
| defaultSkills | No | Optional list of skill references to bundle with this template. Each entry is {skillId, required}. Duplicate skillIds are rejected. UUIDs must reference current, non-deprecated skills. |