{
    "LIST": {
        "summary": "Returns information about all libraries.",
        "complexity": "O(N) where N is the number of functions",
        "group": "scripting",
        "since": "7.0.0",
        "arity": -2,
        "container": "FUNCTION",
        "function": "functionListCommand",
        "command_flags": [
            "NOSCRIPT"
        ],
        "command_tips": [
            "NONDETERMINISTIC_OUTPUT_ORDER"
        ],
        "acl_categories": [
            "SCRIPTING"
        ],
        "reply_schema": {
            "type": "array",
            "items": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                    "library_name": {
                        "description": "The name of the library.",
                        "type": "string"
                    },
                    "engine": {
                        "description": "The engine of the library.",
                        "type": "string"
                    },
                    "functions": {
                        "description": "The list of functions in the library.",
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                                "name": {
                                    "description": "The name of the function.",
                                    "type": "string"
                                },
                                "description": {
                                    "description": "The function's description.",
                                    "oneOf": [
                                        {
                                            "type": "null"
                                        },
                                        {
                                            "type": "string"
                                        }
                                    ]
                                },
                                "flags": {
                                    "description": "An array of function flags.",
                                    "type": "array",
                                    "items": {
                                        "type": "string"
                                    }
                                }
                            }
                        }
                    },
                    "library_code": {
                        "description": "The library's source code (when given the WITHCODE modifier).",
                        "type": "string"
                    }
                }
            }
        },
        "arguments": [
            {
                "name": "library-name-pattern",
                "type": "string",
                "token": "LIBRARYNAME",
                "optional": true
            },
            {
                "name": "withcode",
                "type": "pure-token",
                "token": "WITHCODE",
                "optional": true
            }
        ]
    }
}
