tool_search_docs
Search bundled Ren'Py documentation offline for syntax, function names, and best practices before writing or debugging visual novel code.
Instructions
Search the bundled Ren'Py official documentation (Chinese, from doc.renpy.cn).
Searches through the local copy of the Ren'Py documentation and returns the most relevant sections. Works offline.
Use this BEFORE writing Ren'Py code if you're unsure about syntax, function names, or best practices. For example:
search_docs("Movie") to learn how to play videos
search_docs("screen") to understand screen language
search_docs("transform") to learn about ATL transforms
search_docs("call from") to understand call/from semantics
search_docs("存档") to find save/load documentation
search_docs("label return") to learn about label return mechanics
Args: query: Search query (supports both English and Chinese). max_results: Maximum number of results to return (default 5).
Returns: dict with {ok, query, results: [{file, title, snippet, score}], result_count}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| max_results | No |