Context Window

API

Definition

The maximum amount of text (measured in tokens) that Claude can process in a single request. Includes both input tokens (prompt, history, tool results) and output tokens. Exceeding the context window causes an error or requires context management strategies.

Example Usage

Monitor your context window usage to avoid hitting limits, especially with long conversations or large documents.