Skip to content

ulams liascript

Generated from front/cli (ulams schema)

Create from Markdown, an .md file or a .zip (Markdown + assets).

Kind: write. Stability: stable. MCP tool: liascript_create. Scopes: courses:write.

Endpoints: POST /api/admin/liascript.

Flag Type Required Description
--file string file (path of a local file)
--markdown string
--title string
Terminal window
# Create from Markdown, an .md file or a .zip (Markdown + assets)
ulams liascript create --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"file": {
"type": "string",
"description": "file (path of a local file)"
},
"markdown": {
"type": "string"
},
"title": {
"type": "string"
}
},
"additionalProperties": {}
}

Delete a LiaScript source with all versions and assets.

Kind: destructive (idempotent). Stability: stable. MCP tool: liascript_delete. Scopes: courses:write.

Endpoints: DELETE /api/admin/liascript/{id}.

Flag Type Required Description
--id (positional) integer yes
Terminal window
# Delete a LiaScript source with all versions and assets
ulams liascript delete 1 --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"id"
],
"additionalProperties": {}
}

Show a LiaScript source.

Kind: read (idempotent). Stability: stable. MCP tool: liascript_get. Scopes: courses:read.

Endpoints: GET /api/admin/liascript/{id}.

Flag Type Required Description
--id (positional) integer yes
Terminal window
# Show a LiaScript source
ulams liascript get 1 --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"id"
],
"additionalProperties": {}
}

List LiaScript sources.

Kind: read (idempotent). Stability: stable. MCP tool: liascript_list. Scopes: courses:read.

Endpoints: GET /api/admin/liascript.

Terminal window
# List LiaScript sources
ulams liascript list --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {},
"additionalProperties": {}
}

Live preview of unsaved Markdown on the tenant content origin.

Kind: write. Stability: stable. MCP tool: liascript_preview. Scopes: courses:write.

Endpoints: POST /api/admin/liascript/{id}/preview.

Flag Type Required Description
--id (positional) integer yes
--markdown string yes
Terminal window
# Live preview of unsaved Markdown on the tenant content origin
ulams liascript preview 1 --markdown text --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"markdown": {
"type": "string"
}
},
"required": [
"id",
"markdown"
],
"additionalProperties": {}
}

Markdown of the current or a given version.

Kind: read (idempotent). Stability: stable. MCP tool: liascript_source. Scopes: courses:read.

Endpoints: GET /api/admin/liascript/{id}/source.

Flag Type Required Description
--id (positional) integer yes
--version integer
--out string Write the download to this path (- for stdout)
Terminal window
# Markdown of the current or a given version
ulams liascript source 1 --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"version": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"out": {
"description": "Write the download to this path (- for stdout)",
"type": "string"
}
},
"required": [
"id"
],
"additionalProperties": {}
}

Rename a LiaScript source.

Kind: write (idempotent). Stability: stable. MCP tool: liascript_update. Scopes: courses:write.

Endpoints: PUT /api/admin/liascript/{id}.

Flag Type Required Description
--id (positional) integer yes
--body unknown Request body (JSON)
Terminal window
# Rename a LiaScript source
ulams liascript update 1 --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"body": {
"description": "Request body (JSON)"
}
},
"required": [
"id"
],
"additionalProperties": {}
}

Add a version from Markdown or an upload.

Kind: write. Stability: stable. MCP tool: liascript_versions_add. Scopes: courses:write.

Endpoints: POST /api/admin/liascript/{id}/versions.

Flag Type Required Description
--id (positional) integer yes
--body unknown Request body (JSON)
Terminal window
# Add a version from Markdown or an upload
ulams liascript versions-add 1 --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"body": {
"description": "Request body (JSON)"
}
},
"required": [
"id"
],
"additionalProperties": {}
}

List versions.

Kind: read (idempotent). Stability: stable. MCP tool: liascript_versions_list. Scopes: courses:read.

Endpoints: GET /api/admin/liascript/{id}/versions.

Flag Type Required Description
--id (positional) integer yes
Terminal window
# List versions
ulams liascript versions-list 1 --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"id"
],
"additionalProperties": {}
}

Restore a version (adds a new version with its content).

Kind: write. Stability: stable. MCP tool: liascript_versions_restore. Scopes: courses:write.

Endpoints: POST /api/admin/liascript/{id}/versions/{version}/restore.

Flag Type Required Description
--id (positional) integer yes
--version (positional) integer yes
--body unknown Request body (JSON)
Terminal window
# Restore a version (adds a new version with its content)
ulams liascript versions-restore 1 1 --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"version": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"body": {
"description": "Request body (JSON)"
}
},
"required": [
"id",
"version"
],
"additionalProperties": {}
}