Skip to main content
PlaybooksClient is reachable on every Kataven client as client.playbooks. Each method maps to one HTTP endpoint on the Hub API; links to the underlying spec entry are inline below. Playbooks are reusable knowledge bundles (system-prompt fragments + tool lists) you attach to agents. CRUD via client.playbooks; attach/detach via client.agents.attach_playbook.

Methods at a glance

MethodHTTPSummary
listGET /api/playbooksList playbooks
getGET /api/playbooks/{playbook_id_or_name}Get a single playbook
createPOST /api/playbooksCreate a custom playbook
updatePUT /api/playbooks/{playbook_id_or_name}Update a playbook
deleteDELETE /api/playbooks/{playbook_id_or_name}Delete a custom playbook

Reference

client.playbooks.list(...)

List playbooks HTTPGET /api/playbooks · API reference →
    def list(
        self,
        category: Optional[str] = None,
        search: Optional[str] = None,
        limit: int = 10,
        offset: int = 0,
    ) -> Dict[str, Any]:

client.playbooks.get(...)

Get a single playbook HTTPGET /api/playbooks/{id} · API reference →
    def get(self, playbook_id_or_name: str) -> Dict[str, Any]:
Looks up by uuid or snake_case name. Includes the markdown content from the prompts table.

client.playbooks.create(...)

Create a custom playbook HTTPPOST /api/playbooks · API reference →
    def create(
        self,
        display_name: str,
        name: Optional[str] = None,
        category: str = "custom",
        description: str = "",
        tool_names: Optional[List[str]] = None,
        tags: Optional[List[str]] = None,
    ) -> Dict[str, Any]:

client.playbooks.update(...)

Update a playbook HTTPPUT /api/playbooks/{id} · API reference →
    def update(self, playbook_id_or_name: str, **kwargs) -> Dict[str, Any]:
Default playbooks flip modified_from_default=TRUE on first update so re-seeds skip them.

client.playbooks.delete(...)

Delete a custom playbook HTTPDELETE /api/playbooks/{id} · API reference →
    def delete(self, playbook_id_or_name: str) -> Dict[str, Any]:
Default (seeded) playbooks cannot be deleted — only custom ones.