Summarize Document
document.summarizeSummarize long documents into a concise prose summary and key points, each with cited evidence. Use after extracting text or URL content to quickly grasp key takeaways.
Instructions
Summarize document text into a prose summary and key points with citations. Use after document.extract_text or url.extract when you need a condensed understanding of a long document. For single-sentence Q&A, use url.qa instead. For extracting specific fields, use document.extract_structured. Typical workflow: document.extract_text/url.extract → document.summarize. Returns: { summary: string, key_points: string[], summary_cited: { value, confidence, citations[] }, key_points_cited: [{ text, citations[] }], truncated: boolean, strategy: "full"|"truncated"|"chunked" } Example prompts:
"Summarize this financial report and give me the key points."
"What are the main takeaways from this document?"
"Give me a concise summary of this 50-page report."
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Document text to summarize. Obtain via document.extract_text or url.extract. Example: "The Q4 2025 financial report shows revenue growth of 23% year-over-year..." | |
| max_tokens | No | Input length cap (1 token ≈ 4 chars). Default ~3000 tokens. Truncates input, not output. Example: 4000 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | ||
| strategy | Yes | ||
| truncated | Yes | ||
| key_points | Yes | ||
| summary_cited | Yes | ||
| key_points_cited | Yes |