ast_deps
Extract import/dependency statements from source files in Patchloom for Rust, Python, JS/TS, Go, Java, C/C++, Ruby, and PHP; use reverse mode to find what imports a file.
Instructions
Extract import/dependency statements from source files. Supports Rust, Python, JS/TS, Go, Java, C/C++, Ruby, PHP. Use reverse=true to find what imports a file. Example: {"path": "src/main.rs"}
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": {
"path": "<path>"
},
"name": "ast_deps"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language hint. | |
| path | Yes | File or directory to analyze (relative to working directory). | |
| reverse | No | Show reverse dependencies (what imports this file). |