{
    "status": "ok",
    "description": "Agent CLI Interface. Use this API to interact with the file system.",
    "usage": "Make GET or POST requests to this endpoint.",
    "commands": {
        "help": {
            "description": "Show this documentation",
            "method": "GET",
            "params": []
        },
        "ls": {
            "description": "List files and directories",
            "method": "GET",
            "params": {
                "path": "(optional) Relative path to list. Default: root"
            }
        },
        "read": {
            "description": "Read specific file content",
            "method": "GET",
            "params": {
                "file": "(required) Relative path to the file"
            }
        },
        "write": {
            "description": "Write content to a file",
            "method": "POST",
            "params": {
                "file": "(required) Relative path to the file",
                "content": "(required) Content to write",
                "mode": "(optional) \"append\" or \"overwrite\". Default: \"append\""
            }
        },
        "search": {
            "description": "Search for text in files (recursive)",
            "method": "GET",
            "params": {
                "query": "(required) Text to search for",
                "path": "(optional) Start path. Default: root"
            }
        },
        "tree": {
            "description": "Get a full directory tree structure",
            "method": "GET",
            "params": {
                "path": "(optional) Root path for tree. Default: root"
            }
        }
    },
    "examples": {
        "List files": "https://agents.devetty.es/agent-interface.php?cmd=ls&path=memory",
        "Read file": "https://agents.devetty.es/agent-interface.php?cmd=read&file=memory/GLOBAL_MEMORY.md",
        "Search": "https://agents.devetty.es/agent-interface.php?cmd=search&query=context&path=projects"
    }
}