reference

Fetch model or pattern context for generation and reasoning.

tl;dr reference is the read tool. Use it to fetch model/pattern data, optionally with path for surgical reads. Code is opt-in.

Parameters

ParameterTypeRequiredDescription
targetTypestringYes"model" or "pattern".
modelIdstringNoPreferred model identifier.
patternIdstringNoPreferred pattern identifier.
namestringNoName fallback when ID is unavailable.
collectionstringNoFor models: "public" or "private".
pathstringNoJSON Pointer path (e.g. /principles, /components/button, /page/components).
includePagebooleanNoInclude page metadata (schema/version) in full model reads.
includeCodebooleanNoExplicitly include page implementation code in model responses.

Examples

  • reference { targetType: "model", modelId: "pub_123" }
  • reference { targetType: "model", modelId: "priv_7", includePage: true }
  • reference { targetType: "model", modelId: "priv_7", includeCode: true }
  • reference { targetType: "model", modelId: "priv_7", path: "/page/components" }
  • reference { targetType: "pattern", patternId: "hero-centered" }

Notes

  • Default model reads are lean and do not include page code.
  • Use includeCode: true only when code access is required.
  • Prefer path for targeted reads to reduce payload size.

Better prototypes with less prompting

Start creating