search_godot_code_examples
Find runnable Godot code examples from the official docs. Filter by language for working GDScript or C# samples with source references.
Instructions
Search runnable code examples extracted from the documentation. Each sample carries its language tag, the URI of the page or class it came from, and the heading it appeared under. Use this when working code is wanted; use search_godot_docs when an explanation is wanted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum results to return. Values above 50 are reduced to 50 rather than rejected. Fewer may come back: the response is also capped by total size. | |
| query | Yes | What to look for, in plain words. A question is fine. | |
| language | No | Restrict to one language tag, e.g. 'gdscript' or 'csharp'. Omit for every language. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | What to call next to see what was omitted, or to narrow the request. Empty when nothing was left out. | |
| query | Yes | The query as it was actually searched. | |
| samples | No | Examples, best first. | |
| truncated | No | Whether content was omitted to stay within the budget. |