Docs

StudioHome
Documentation
Quick StartLanguage TutorialWorkflow RecipesCLI Commands
Language ReferenceType SystemAgentsWorkflowsVisitorsRoles & PermissionsCapability VerbsControl Flow
Todo FlowE-commerce StarterLanding Blueprint
Spectral StudioAI & IDE SetupAdvanced TypesWorkflow Features
GitHubMore Examples

Spectral Docs

Home
Documentation
Quick StartLanguage TutorialLanguage ReferenceAPI ReferenceWorkflow RecipesInstallation GuideCommunity

Language Reference

Complete reference for all Spectral keywords, constructs, and syntax.

Type System

Define custom data structures with types and enums

typeenuminterface

Agents

Define autonomous agents with capabilities and skills

agentcapabilitiesskillsmodel

Workflows

Define state machines and transitions

workflowstatetransitioninitialfinal

Visitors

Define hierarchical capability trees and user journeys

visitorcannested capabilities

Roles & Permissions

Define roles with specific permissions

rolepermission

Capability Verbs

Modal verbs for agent capabilities

canmustshouldmaywillshallcannot

Control Flow

Conditional and logical operators

ifwhenwhileforandornot

About Spectral Keywords

Spectral is a declarative language designed for defining multi-agent systems, workflows, and capability hierarchies. Each keyword serves a specific purpose in describing system behavior and structure.

Click on any section above to explore the keywords in detail with examples and usage patterns.