docs_scan
Scan Word, Excel, and PowerPoint files for prompt-injection payloads, hidden instructions, invisible Unicode, and encoded content before an agent reads untrusted documents.
Instructions
Scan Office documents (.docx/.xlsx/.pptx) for prompt-injection payloads.
Use when the user asks to check a Word/Excel/PowerPoint file for hidden
instructions, poisoned content, invisible Unicode, or encoded payloads —
e.g. an email attachment the agent is about to read, a "spec" document from
an untrusted source, or hidden text (w:vanish) inside a contract.
path is a local file or directory. Coverage is reported honestly:
files/parts/chars actually scanned (not "the whole repo").
formats (optional) writes report artifacts (json/sarif/markdown/html) locally.
Detection faces: document poisoning (PIT-N-06), invisible characters (PIT-E-23),
trojan source (PIT-E-54), encoding family — same rules as pitax_scan.
Not for: plain text or source code — use pitax_scan / code_audit.
Triggers: check this Word/Excel/PPT file, is this document poisoned, 邮件附件
安全吗, 文档投毒, 隐藏文字, Word 里藏了指令.
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": "docs_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| formats | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |