import.extract
Extract a function or module from any GitHub repository with license checks, dependency resolution, and style adaptation; get ready-to-paste code with attribution.
Instructions
Extract a function/module from a GitHub repo with provenance. License-checked, dependency-resolved, style-adapted. Returns ready-to-paste code with attribution.
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": {
"repo": "<repo>",
"path": "<path>"
},
"name": "import.extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Branch/tag/commit | |
| path | Yes | File path in the repo | |
| repo | Yes | owner/repo | |
| symbol | No | Specific function/class to extract | |
| adaptStyle | No | Adapt to your project's style |