extract_text_from_file
Extract text content from PDF, Word, TXT, and MD files to prepare document data for word cloud visualization and text analysis.
Instructions
从文档文件中提取文字内容,支持 PDF、Word、TXT、MD 等格式
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": {
"filePath": "<filePath>",
"fileType": "<fileType>"
},
"name": "extract_text_from_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | 文档文件的路径 | |
| fileType | Yes | 文件类型 |