Home

Instruction Type

This is an enumeration used in Stencila Schema describing the operation requested by an instruction.

It exists so editing workflows can distinguish actions such as creating, revising, or describing content using a controlled vocabulary. This allows prompts, tools, and interfaces to select behavior consistently.

See Instruction.instructionType and related properties for where this enumeration is used.

Members

The InstructionType type has these members:

MemberDescription
DiscussDiscuss document, kernel, workspace or other contexts. Normally only used for Chats.
CreateCreate new document content, usually a single document node (e.g. Paragraph or Table), ignoring any existing content nested within the instruction. The instruction message will normally include the type of content to produce (e.g. "paragraph", "table", "list").
DescribeDescribe other document content. The instruction message should indicate the target for the description e.g. "describe figure 1", "describe next", "describe prev output"
EditEdit existing document nodes. Expected to return the same node types as existing nodes.
FixFix an existing document node, usually a CodeChunk, CodeInline, or MathBlock. Expected to return the same node type without any compilationErrors or executionErrors.

Bindings

The InstructionType type is represented in:


This documentation was generated from InstructionType.yaml by docs_types.rs.

© 2026 Stencila