Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

📘 Chapter 2: The Context Object

When your script runs, it doesn’t start from scratch — it’s handed a context object.
Think of the context like a backpack your script always carries. Inside, you’ll find everything you need to know about:

  • The character – their personality, scenario, and traits.

  • The chat – what the user said, how long the talk has gone, and (optionally) a few of the latest messages.