Skip to content
{% operation %}
AutoXXS (320px)XS (375px)SM (640px)MD (768px)LG (1024px)XL (1280px)XXL (1536px)
SketchMaterialiOSTamagui
DataInjectionKeyPatternsServiceTransactionProcessResearchProductQualityPerformanceSpecDomainFunctionTechnologyArchitectureConfigMiddlewareDataDatabaseDrizzleMigrationModelop-sqliteSchemaSQLState ManagementDraftKeystoneMergePatchPatchesPersistenceReactiveRedoStoreUndoTestingDeviceFactoryIsolationTypeScriptZodTopicsCommunicationBidsNVCDesignDesign ImplicationsEducationPedagogyFoundationsPsychologyAttachmentFloodingRelatingAuthentic RelatingUIEditorReact Native

{% operation %}

Attributes

Parameter Type Required Description
name string Unique kebab-case operation name (e.g., 'get-bookmark')
type enum read | write — whether the operation modifies state
idempotent boolean True if multiple calls with the same input produce the same result. Default false.

Valid Children

TagMultiplicity
{% property %}[*]
{% returns %}[?]
{% throws %}[*]

Valid Parent Contexts

This tag is valid inside: {% api %}

Rules

Rule Force Realm Reference Description
operation-or-action-exclusive must global A specific domain intent should be modeled as either an or an , but not both.
convention
operation-read-verb-nouns should global Use for descriptive verb-nouns: , .
conventionnaming
operation-write-verb-nouns should global Use for imperative verb-nouns: , .
conventionnaming

Declares a named invocable unit with a typed input payload, a typed success response, and a set of declared domain errors.

Operation with properties, returns, and throws
tagoperationpropertyreturns operation-tag-full
{% operation name="get-bookmark" type="read" idempotent=true %}
Returns a single bookmark by its identifier.
{% property name="bookmark-id" type="uuid" required=true /%}
{% returns %}
{% property name="url" type="string" required=true /%}
{% /returns %}
{% throws ref="bookmark-not-found" /%}
{% /operation %}