Check a file for a tarpit
check_fileScans a file for deliberate anti-AI obfuscation (a tarpit) before reading or analyzing it, returning a risk score and recommended strategy so agents can skip risky files and avoid wasted tokens.
Instructions
Check one file for deliberate anti-AI obfuscation (a "tarpit") before reading it.
Call this BEFORE reading or analyzing an unfamiliar or suspicious file. It only measures the text's shape; it never runs, decodes, or deobfuscates anything.
Returns a report with score (0-100), hardened (true when score >= 55),
confidence, the fired_signals, and a recommended_strategy.
If hardened is true, stop: do not read or trace this file. Skip it, or report
it to the user, instead of spending tokens on it.
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": "check_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to check, e.g. 'vendor/app.min.js'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||