Skip to content

ulams knowledge

Generated from front/cli (ulams schema)

Start a knowledge pack export of one course or of the whole tenant.

Kind: write. Stability: stable. MCP tool: knowledge_exports_create. Scopes: learner:write.

Endpoints: POST /api/admin/knowledge/exports.

Flag Type Required Description
--course-id integer Required for scope course
--scope string yes
Terminal window
# Export one course for company RAG
ulams knowledge exports-create --scope course --course-id 12 --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"course_id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Required for scope course"
},
"scope": {
"type": "string",
"enum": [
"course",
"tenant"
]
}
},
"required": [
"scope"
],
"additionalProperties": {}
}

Download manifest.json, chunks.jsonl or index.json of a ready export (use –out).

Kind: read (idempotent). Stability: stable. MCP tool: knowledge_exports_download. Scopes: learner:read.

Endpoints: GET /api/admin/knowledge/exports/{export}/download.

Flag Type Required Description
--export (positional) string yes
--file string yes
--course integer Course of a tenant export (for manifest and chunks)
--out string Write the download to this path (- for stdout)
Terminal window
# Download manifest.json, chunks.jsonl or index.json of a ready export (use --out)
ulams knowledge exports-download text --file text --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"export": {
"type": "string"
},
"file": {
"type": "string",
"enum": [
"manifest",
"chunks",
"index"
]
},
"course": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Course of a tenant export (for manifest and chunks)"
},
"out": {
"description": "Write the download to this path (- for stdout)",
"type": "string"
}
},
"required": [
"export",
"file"
],
"additionalProperties": {}
}

One knowledge export.

Kind: read (idempotent). Stability: stable. MCP tool: knowledge_exports_get. Scopes: learner:read.

Endpoints: GET /api/admin/knowledge/exports/{export}.

Flag Type Required Description
--export (positional) string yes
Terminal window
# One knowledge export
ulams knowledge exports-get text --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"export": {
"type": "string"
}
},
"required": [
"export"
],
"additionalProperties": {}
}

Knowledge exports, newest first.

Kind: read (idempotent). Stability: stable. MCP tool: knowledge_exports_list. Scopes: learner:read.

Endpoints: GET /api/admin/knowledge/exports.

Flag Type Required Description
--course-id integer
Terminal window
# Knowledge exports, newest first
ulams knowledge exports-list --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"course_id": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"additionalProperties": {}
}

The latest ready export of a course.

Kind: read (idempotent). Stability: stable. MCP tool: knowledge_latest. Scopes: learner:read.

Endpoints: GET /api/admin/knowledge/courses/{course}/latest.

Flag Type Required Description
--course (positional) integer yes
Terminal window
# The latest ready export of a course
ulams knowledge latest 1 --json
Input JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"course": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"course"
],
"additionalProperties": {}
}