pg_search_code
Find code symbols, camelCase or snake_case substrings, and query matches across Python, TS/JS, Go, Rust, and other languages using hybrid BM25 and trigram ranking.
Instructions
Hybrid SQLite FTS5 (BM25 symbol + trigram substring RRF) code search across Python, TS/JS, Go, Rust, etc.
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": "pg_search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slot | No | Workspace slot name (optional if only one slot is open or `--slot` default is set). | |
| limit | No | Max hits to return (default: 10). | |
| query | Yes | Symbol name, camelCase/snake_case substring, or code query. |