Search Command Lua API
cmo_search_apiSearch the Command Lua function catalog to verify real function names before scripting, then retrieve official documentation for a matching result.
Instructions
Search the Command Lua function catalog taken from https://commandlua.github.io/assets/Functions.html.
Use this before writing a script so the function name is real. Call cmo_get_function for the official page of one result.
Examples:
"add a ship" -> query="add unit"
"event triggers" -> query="set trigger"
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "cmo_search_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum matches to return | |
| query | Yes | Words to match against function names, categories, and short summaries | |
| offset | No | Number of matches to skip | |
| response_format | No | 'markdown' for readable text, 'json' for structured data | markdown |