"""Explicit tool registry: the only tools the agent can call, each with a closed JSON Schema. delete_note is implemented in tools.py but is deliberately not listed here.""" REGISTRY = { "read_note": { "description": "Read a note from the notes folder by relative path.", "schema": { "type": "object", "properties": {"path": {"type": "string", "minLength": 1, "maxLength": 100, "pattern": r"^[A-Za-z0-9_\-./]+$"}}, "required": ["path"], "additionalProperties": False, }, }, "send_email": { "description": "Send a short email to a colleague.", "schema": { "type": "object", "properties": { "to": {"type": "string", "maxLength": 100}, "subject": {"type": "string", "maxLength": 120}, "body": {"type": "string", "maxLength": 2000}, }, "required": ["to", "subject", "body"], "additionalProperties": False, }, }, } ALLOWED_RECIPIENT_DOMAINS = {"example.com"}