name: file-summary description: | local document summary & analysis tool. triggers: 帮我总结, 总结文件, 分析文档, 分析总结, 总结一下, 分析一下 summarize for me, analyze for me, summarize the file, analyze the document, file summary, document analysis Supported formats: txt, docx, pdf, xlsx, xls ⚠️ Privacy Note: Extracted content will be sent to OpenClaw LLM for summary/analysis — DO NOT use with sensitive/confidential files.
A universal tool for extracting text from local documents and generating summaries/analysis, supporting both Chinese and English trigger words.
From user input 帮我总结 D:\测试.pdf → file_path = D:\测试.pdf
From user input summarize for me C:\test.pdf → file_path = C:\test.pdf
{ "action": "extract", "file_path": "D:\测试.pdf" }
Returns (返回结果): - Success: Plain text content of the document (txt/docx/pdf/xlsx/xls) - Error: Error message starting with ❌ (e.g. ❌ File not found, ❌ Unsupported format)
{ "action": "summary", "file_path": "D:\测试.pdf" }
Returns (返回结果): - Summary: Concise key-point summary of the document content (integrated with OpenClaw LLM) - Analysis: In-depth analysis of the document content (integrated with OpenClaw LLM)
To summarize/analyze a local document:
1. Extract content: { "action": "extract/analysis", "file_path": "your_file_path" } → returns plain text
2. Generate result: OpenClaw LLM summarizes/analyzes the extracted text automatically
channels: local: tools: file_summary: true # default: true python: true # required - need Python environment
Required (必备): - Local file read permission (user needs to grant file access) - Python execute permission (no special system permissions required)
file-summary folder into OpenClaw's skills directoryfile-summary folder (include md/py) to a public platform (e.g. GitHub/Gitee, ClawHub)整体质量较好,胜在简单实用、功能明确。优点是对常见办公文档都能读取,错误提示清晰,中英双语友好,无需手动装库就能用。不足是遇到扫描件或带图片的 PDF 就无法识别,Excel 格式会变得简陋,隐私方面仅靠文字提醒略显单薄。日常处理普通文档够用,但对复杂场景支持有限。