Code Search (Exa)
code_searchSearch GitHub, documentation, and Stack Overflow for code examples, API usage, and programming patterns. Get token-efficient snippets with source URLs for code-specific queries.
Instructions
Search for code examples, API usage, and programming patterns across GitHub, docs, and Stack Overflow. Use instead of exa_search for code-specific queries. Returns token-efficient snippets with source URLs. Does NOT search general web content.
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": "code_search"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Code search query - describe the pattern, API, or concept you need | |
| tokensNum | No | Response size: 'dynamic' (auto) or 50-100000 tokens | dynamic |