search_source
Search the GitHub source code of an Industrial Ecology package for a specific query string, returning up to 10 matching files with their paths and URLs.
Instructions
Search the GitHub source code of a package for a query string.
Uses the GitHub code search API to find files containing the query. Returns up to 10 results with the file name, path, and GitHub URL.
Requires the GITHUB_TOKEN environment variable for best results (5000 req/hr authenticated vs 60/hr unauthenticated).
Args: package: Package name as returned by list_packages(). query: Search string (e.g. function name, class name, keyword).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| package | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |