Condense a document
condense_documentShorten a .docx document while preserving its meaning, structure, and citations, either as a whole to a target word count or selected passages to individual budgets; save the result beside the source.
Instructions
Shorten a .docx, keeping meaning, structure and citations: the whole document to max_words, or only chosen passages (segments), each to its own budget. Saves the result next to the source and returns its path. COSTS CREDITS at 20 per 1,000 words processed (10 minimum) - say so and get agreement first.
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": {
"document_path": "<document_path>"
},
"name": "condense_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | rewrite (default) condenses sentences in place; delete removes whole low-value sentences and keeps every other word verbatim | |
| segments | No | Shorten only these passages, each to its own budget, instead of max_words. A paragraph is the smallest unit: each passage is widened to its whole paragraph. | |
| max_words | No | Target word count for the whole document (or use segments) | |
| output_path | No | Where to write the result; defaults to beside the source | |
| instructions | No | Extra requirements for this job | |
| wait_seconds | No | How long to wait before returning a job id (default 55) | |
| document_path | Yes | Absolute path to the .docx |