Dir Tool
dir_toolList a directory across all security layers to detect shadowed modules and risky files before running code from extracted, cloned, or downloaded sources.
Instructions
List a directory through all three layers.
File names are judged like any other text. A directory where a .py file shadows a Python standard-library module (struct.py, os.py) is flagged: running Python there would import the attacker's module. Use this before running code in anything extracted, cloned or downloaded.
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": "dir_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Directory to list | |
| trentina_mode | No | block, flag, or {"redact": "<what you need>"} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||