Check source text for a tarpit
check_sourceDetects deliberate anti-AI obfuscation in in-memory source code without disk access, returning a report so agents can stop before wasting tokens on tarpit snippets.
Instructions
Check a piece of source code for deliberate anti-AI obfuscation without touching disk.
Use this when you have code in memory (a paste, a diff, a fetched file) rather than
a path. Returns the same report as check_file. If hardened is true, stop and do
not analyze the code further.
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": {
"text": "<text>"
},
"name": "check_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The raw source code to check. | |
| label | No | A name for this snippet, echoed back as `path` in the report. | snippet |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||