infosys_search_code
Search the code examples of the indexed pages for a fragment — a call pattern, an attribute, a constant (case-insensitive substring of the code as written; non-breaking spaces count as spaces).
Instructions
Search the code examples of the indexed pages for a fragment — a call pattern, an attribute, a constant (case-insensitive substring of the code as written; non-breaking spaces count as spaces). language: one that occurs in the index (an unknown one is refused with the list), '' / 'none' = samples without a label. limit 1..50; total_matches says how many there are. ignore_spacing=true also matches when only the spacing around punctuation differs. Returns the matching lines with context and the page URL.
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": "infosys_search_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | results shown, 1-50 | |
| query | Yes | ||
| language | No | ||
| ignore_spacing | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||