# Give the agent context

Reference files, nodes and screenshots. Set a testable goal and carry it across longer sessions.

Canonical page: https://gameagent.ink/en/docs/context/
Updated: 2026-11-25

## Reference a project object

Type `@`, search for the file, node or asset, and select it. Add the behavior you want to investigate.

> Read the referenced player script. Check the event binding and node state, then explain why the button does not respond.

## Attach a screenshot

Paste the image into the composer and check its thumbnail. Select a model with image input. Say whether the image is a visual reference, a bug report or an actual preview frame, and identify the part to inspect.

> In this results screen, check the button spacing at the bottom and the title position on a 720 × 1280 portrait display. Keep the existing wording and art.

## State scope and acceptance criteria

Name the outcome, affected objects, constraints and an observable test. For example, ask for three 0.1-second flashes on player damage, with no overlapping flashes on repeated hits. Have the agent run the scene, apply damage twice and list the modified files and checks.

## Compact or continue

Click the context indicator to inspect usage. Use `/compact` to schedule history compression before the next model call. The summary carries forward recent progress and applicable requirements. If a new session is needed, provide the current goal, relevant files and last verified result.
