Extract Text from Word
extract_text_from_wordExtract text from Word documents with optional page ranges and filters for comments, headers/footers, and tracked changes, saving both text and metadata.
Instructions
Extract text from a Word document via PDF4me /api/v2/ExtractTextFromWord. Supports page range and content filtering options (comments, header/footer, tracked changes). Saves extracted text and JSON response metadata to disk.
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": {
"word_file_path": "<word_file_path>"
},
"name": "extract_text_from_word"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_dir | No | ||
| accept_changes | No | ||
| word_file_path | Yes | ||
| end_page_number | No | ||
| remove_comments | No | ||
| output_file_name | No | ||
| request_doc_name | No | ||
| start_page_number | No | ||
| remove_header_footer | No |