Search Desynced Lua API
search_lua_apiSearch the official Desynced Lua API reference to find function signatures and descriptions with context lines.
Instructions
Search the official Desynced Lua API reference (modules Action/Debug/Game/Input/Map/Tool/Twitch/UI/View and metatables Component/Entity/Faction/ItemSlot/ModPackage/Register/Widget). Returns matching lines with trailing context (signatures + descriptions).
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": "search_lua_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Function/property name or keyword, e.g. 'SetRegister', 'CreateEntity', 'on_update' | |
| max_results | No | ||
| context_lines | No |