detect_ai_file
Score a local paper file (.txt, .md, .tex, .docx, .pdf) paragraph by paragraph for AI-like writing style without loading it into context, returning ranked rewrite targets.
Instructions
Score a local paper (.txt, .md, .tex, .docx, .pdf) without loading it into context.
Args: path: Path to the file (~ is expanded). detail: 'paragraph' (default) or 'windows'. include_text: Include each paragraph's full text (large; usually use get_rewrite_plan or read_paragraphs instead). exclude_references: Drop the bibliography (default true).
DOCX body paragraphs and PDF page text are extracted; DOCX tables are skipped. Same response shape as detect_ai_text, plus source metadata.
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": "detect_ai_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| detail | No | paragraph | |
| include_text | No | ||
| exclude_references | No |