Usage
Note: The following invocation methods all use the folder where the current SKILL.md file is located as workdir. It must be executed directly as an executable file.
- Run script:
scripts/exa-cli.py - Web search:
scripts/exa-cli.py web-search-exa <query> - Programming retrieval:
scripts/exa-cli.py get-code-context-exa <query>
web-search-exa
Note: Real-time web search and return results and body snippets.
Required parameters:query(search query statement).
Optional parameters:
--type: search type (auto/fast/deep).
--livecrawl: crawl mode (fallback/preferred).
--num-results: number of results to return.
--context-max-characters: maximum number of characters for the returned context.
--endpoint: service address (default https://mcp.exa.ai/mcp)。
--token: authentication token, reads the environment variable by default.
--timeout: request timeout in seconds (default 30.0).
--cache-ttl: cache validity period (seconds, default 3600).
--no-cache: disable local cache.
--json: output the full response as JSON.
--verbose: output debug logs.
get-code-context-exa
Note: Retrieval oriented toward programming questions, returning high-quality context information.
Required parameters:query(context retrieval query).
Optional parameters:
--tokens-num: number of tokens to return.
--endpoint: service address (default https://mcp.exa.ai/mcp)。
--token: authentication token, reads the environment variable by default.
--timeout: request timeout in seconds (default 30.0).
--cache-ttl: cache validity period (seconds, default 3600).
--no-cache: disable local cache.
--json: output the full response as JSON.
--verbose: output debug logs.