Skip to content
MoorAI
03 — agents & architecture

Context window

The text a model can take into account at once, measured in tokens: system prompt, conversation, tool definitions, file contents and tool results. For security it is the attack surface, because everything in the window can steer the model whoever wrote it; reading a file or a web page into the window is the moment an indirect prompt injection lands.

Related terms

  • Indirect prompt injection Attack concepts

    The instructions are planted in content the agent reads rather than text the user types — a web page, a GitHub issue, a code comment, a dependency's…

  • Tool registration Agents & architecture

    The handshake in which a server tells the host what tools it offers, and the host puts those names, descriptions and schemas into the model's context.

  • Context tree Defence & response

    In AI incident forensics, a reconstruction of everything that entered a model's context during a session and where each piece came from — prompts, files…

Agents & architecture

Where the attacks above actually land. The vocabulary here is worth precision, because the difference between "the model decided" and "the tool ran" is the difference between a risk and an incident.

Context window is term 9 of 16 in this part of the glossary.

Get started free Full glossary → How we test → Community agent on GitHub ↗

This page is one entry from the agentic AI security glossary, which defines 82 terms in the same style. Where a term belongs to a published taxonomy or standard — the HackAgent attack families, the OWASP lists, AMTSO's guidelines, MITRE ATLAS, ISO/IEC 42001, the NIST AI RMF, the EU AI Act, W3C Trace Context, the MCP specification — the authoritative wording is the source document's, not ours, and specifics should be verified there. "Lethal trifecta" is Simon Willison's term. OWASP® is a trademark of the OWASP Foundation; ATT&CK® and ATLAS™ are trademarks of The MITRE Corporation. Naming a framework here is description, not a claim of certification or endorsement.