{
    "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
            }
        ]
    }
}
