Search codebase
search_codebaseSearches an indexed game front-end codebase and returns relevant code and documentation excerpts with file paths and line ranges, helping locate definitions, configurations, and flow participants.
Instructions
Search the indexed game front-end codebase and return the most relevant excerpts (code and docs) with file paths and line ranges.
Use it to find where a value is configured, where a class / function / constant is
defined, or which files take part in a flow. Queries can be natural language
(English or Chinese) or identifiers (e.g. INVINCIBLE_MS, ScoreSystem); including
an identifier when you know it improves results. Call it again with a narrower
query if the first results are off target.
Returns excerpts only, not an answer: read them, then answer and cite path:start-end.
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_codebase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | What to look for | |
| top_k | No | Number of excerpts (default 8) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| results | Yes |