reference
Explore complete API reference with TypeScript types, code examples, and interactive playground. Search semantically across all .do services with AI-powered documentation.
reference
Reference.do
Overview
The reference primitive is part of the .do platform's semantic API system. It follows the $.Subject.verb.Object pattern for consistent, intuitive interactions across SDK, CLI, API, and MCP interfaces.
Semantic Pattern
All reference operations follow the semantic $.Reference.verb.Object pattern:
import { $, reference } from 'sdk.do'
// Create resources
await $.Reference.create.Resource({ /* config */ })
// Query data
await $.Reference.get.Data({ /* params */ })
// Update state
await $.Reference.update.Status({ /* changes */ })Quick Start
import { reference } from 'sdk.do'
// Initialize and use the primitive
const result = await reference.operation({
// configuration parameters
})Access Methods
The reference primitive is accessible through multiple interfaces:
SDK
TypeScript/JavaScript library for programmatic access:
import { reference } from 'sdk.do'
await reference.method({ /* ... */ })CLI
Command-line interface for terminal operations:
do reference <command> [options]API
REST/RPC endpoints for HTTP integration:
curl -X POST https://api.do/v1/reference \
-H "Content-Type: application/json" \
-d '{"key":"value"}'MCP
Model Context Protocol for AI assistant integration:
Use reference primitives with AI assistants via MCPRelated Primitives
See other primitives in the development category.