Summarize Text
summarize_textSummarize text — extractive (verbatim key sentences in original order) or abstractive (concise rewrite).
Args: text: The text to summarize. mode: 'abstractive' or 'extractive'. max_length: Target maximum length of the summary, in words.
Returns: dict with the summary (key: summary) plus word/char counts.
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": {
"text": "<text>"
},
"name": "summarize_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'abstractive' (concise rewrite) or 'extractive' (most important sentences, verbatim) | abstractive |
| text | Yes | The text to summarize | |
| max_length | No | Target maximum length of the summary, in words |