Skip to content

Viewport Context

Register skills, each with its instructions and the tools it needs. The agent starts with a short index, loads a skill when the task calls for it, and only then gets that skill's tools. Context budgets keep prompts in bounds, and assembly keeps cacheable prefixes stable.

On npm and PyPIOn npm and PyPI. Install it today.
npm install @viewportai/context
pip install viewport-context
Context for this turnsupport-agent1,204 / 8,000 tokens

Skills

  • refundsloaded
  • shippingin index
  • accountsin index

Tools bound

lookup_orderissue_refund

System 412Skill 680History 112

Sample data.

What it does

Skills registry

A skill is instructions plus tools plus metadata. Keep them in files next to your code and review them like code.

Progressive loading

The model sees a one-line index of skills, then pulls in the full skill only when it needs it.

Per-skill tool binding

Tools are bound when their skill loads, so a model choosing among 8 tools is not choosing among 80.

Context budgets

Set a token budget per section. Assembly trims by priority instead of silently truncating the end.

Cache-friendly assembly

Stable content first, volatile content last, so provider prompt caches keep hitting.