dsdx.examples.get
Fetch the full official .ds2 source code, syntax notes, and metadata for a single starter example by id (equivalent aliases: exampleId, filename, key, name, example; id takes precedence) and optional lang ('ko', 'en', 'de', 'ja'). Missing or unknown id returns a validation error listing valid example IDs. Use after dsdx.examples.list when you need runnable DS2 code for /play or local editing; use dsdx.examples.list instead when browsing available examples. Omitting id on public /mcp returns default ds2/v2 starter example 'st-conditions-v2' with fallback=true.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dsdx.examples.get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Alias for id | |
| id | No | Official example id or filename, e.g. 'basic', 'tutorial-basic', 'intermediate', 'xg5000-demo-kit', 'advanced', 'library-advanced', 'carwash', 'carwash-continuous', 'st-conditions-v2', 'robot-assembly-cell-v2', 'status-indicator-cell-v2' | |
| bpm | No | Timeline tempo BPM when buildShow is true (40..220, default: 140.0) | |
| key | No | Alias for id | |
| file | No | Alias for id | |
| lang | No | Preferred localized language: 'ko' (default) | 'en' | 'de' | 'ja' | |
| name | No | Alias for id | |
| path | No | Alias for id | |
| query | No | Alias for id | |
| width | No | Canvas width in pixels when buildShow is true (320..3840) | |
| height | No | Canvas height in pixels when buildShow is true (180..3840) | |
| target | No | Alias for id | |
| example | No | Alias for id | |
| filename | No | Alias for id (exact example filename) | |
| buildShow | No | When true, generate a self-contained 3D Build Show + AAS offline viewer resourceUri for this official example | |
| exampleId | No | Alias for id | |
| example_id | No | Snake_case alias for id | |
| includeHtml | No | Whether to inline UTF-8 HTML text in artifacts when buildShow is true (default: false) | |
| aspectPreset | No | Optional 3D Build Show viewport preset when buildShow is true: 'landscape-16x9' | 'shorts-9x16' | 'square-1x1' | |
| example_name | No | Alias for id | |
| cleanShortsMode | No | Hide all chrome in ?shorts=1 mode when buildShow is true (default: true) | |
| durationSeconds | No | Build Show timeline duration in seconds when buildShow is true (3..300, default: 32.0) | |
| subPartAssembly | No | Animate sub-part assembly sequence when buildShow is true (default: true) | |
| buildShowOptions | No | Optional dsdx-build-show/1.0 configuration object when buildShow is true |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Structured error payload when status != OK | |
| result | No | Operation result payload | |
| status | No | OK | REJECTED | |
| protocol | No | DSDX-MCP/1.0 protocol URN | |
| revision | No | Workspace revision tag (e.g. rev-0001) | |
| operation | No | Executed operation name |