A model knows two kinds of things. What it soaked up in training is baked into its weights: broad, fuzzy, and frozen at a cutoff date. What you put in front of it right now is the context window: the text it can actually read while it writes. Andrej Karpathy's way of putting it is that the weights are a vague recollection and the context is working memory.
Working memory is the part you control. Anthropic counts everything in the request toward it: the system prompt, every earlier message in the chat (including tool results, images and documents), the definitions of any tools you hand it, and then the reply Claude writes, thinking included.