Search Functions
search_functionsFind functions by name or concept across a codebase to check if a helper already exists or locate where behavior like retry or validation is implemented.
Instructions
Find functions by name or concept across the whole codebase.
CALL THIS WHEN: • Checking whether a function, helper or utility already exists • Finding where something is implemented (e.g. "retry", "validate", "notify")
RETURNS: Matching functions with file path, line range, module, signature, export status and complexity. Matches name parts (camelCase, snake_case) and file paths, not comments; test code ranks last. SCREAMING_SNAKE queries, and queries no function matches, return matching constants with up to 80 characters of each value.
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": {
"repo": "<repo>",
"query": "<query>"
},
"name": "search_functions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Only this file (full path matches exactly, a file name as a substring) | |
| repo | Yes | Repository name — one of your connected repos. | |
| limit | No | Max results (default 20) | |
| query | Yes | Function name or part of one | |
| module | No | Only this module | |
| offset | No | Results to skip (default 0) | |
| exported_only | No | Exported functions only (default false) |