skill operations
The exact fields each skill.* operation takes and returns.
The exact fields each skill.* operation takes and returns.
Every op is POST /v1/<op> over HTTP and the MCP tool loom_<op>. The identity fields (org, namespace, agent, user_id, session_id) are filled from the token and the MCP session when a transport can; for an HTTP call with no token on a single-user server, the install’s org on every op but code.* and tracker.* (which keep their plane’s), and on some ops its namespace and agent; see identities and namespaces. The operations index explains role, kind and the MCP all listing. Unknown input fields are served and named in ignored_args, and a response served from a fallback or a partial read names it in degraded (degraded answers).
skill.check
Report whether a skill folder passes the package rules (not whether its text is safe to follow) and which operations it names.
POST /v1/skill.check · MCP loom_skill_check · role viewer · read · not listed under the MCP all toolset
| Input field | Type | Default | Meaning |
|---|---|---|---|
org |
str |
required | The tenant (first element of the identity tuple). |
namespace |
str |
required | The namespace the folder is checked for. |
files |
list[SkillFile] |
required | Every file of the folder: SKILL.md at the root and the text files beside it. |
| Output field | Type | Meaning |
|---|---|---|
ok |
bool |
Whether the package rules pass (refusals is empty), never whether the text is safe to follow. |
refusals |
list[SkillNote] |
Every rule the package breaks. |
findings |
list[SkillNote] |
What a reviewer may want to read; a finding refuses nothing. |
name |
str |
The frontmatter’s name; empty when the frontmatter did not load or the name rule refuses the value. |
description |
str |
The frontmatter’s description; empty when the frontmatter did not load. |
content_sha256 |
str |
SHA-256 of the manifest <sha256 of the file's UTF-8 bytes> <path>\n over every file, sorted by the path’s UTF-8 bytes; empty when a path rule refused or the package is over its byte or file limit. |
bytes |
int |
The package’s size in UTF-8 bytes. |
file_count |
int |
How many files the package holds. |
operations |
list[SkillOperation] |
The operations and MCP tools the text names in code spans, each at its first mention; empty for a package over its byte or file limit, whose text is not read. |
skill.decide
Publish or reject a revision of a namespace’s skill, or archive the skill.
POST /v1/skill.decide · MCP loom_skill_decide · role admin · idempotent · not listed under the MCP all toolset
| Input field | Type | Default | Meaning |
|---|---|---|---|
org |
str |
required | The tenant (first element of the identity tuple). |
namespace |
str |
required | The namespace the op reads or writes. |
name |
str |
required | The skill’s name, as skill.list answers it. |
decision |
Literal['publish', 'reject', 'archive'] |
required | publish or reject a revision, or archive the skill. |
revision |
int |
0 |
The revision to publish or reject; left at 0 (the default) to archive. |
approved_sha256 |
str |
'' |
To publish: the content_sha256 of the revision as the caller read it. |
note |
str |
'' |
Why: required to reject, optional to archive, not taken to publish; at most 500 characters. |
| Output field | Type | Meaning |
|---|---|---|
namespace |
str |
The namespace that holds the skill. |
name |
str |
The skill’s name. |
decision |
Literal['publish', 'reject', 'archive'] |
The decision asked. |
revision |
int |
The revision decided: the one named, or the one an archive stopped serving; 0 for an archive of a skill that was archived before. |
content_sha256 |
str |
The hash of that revision’s files; empty when revision is 0. |
state |
Literal['published', 'unpublished', 'archived'] |
The skill’s state after the call: published, unpublished or archived. |
revision_state |
Literal['', 'draft', 'published', 'rejected', 'superseded', 'withdrawn'] |
The state of revision after the call; empty when revision is 0. |
published_revision |
int |
The served revision’s number after the call; 0 when none is served. |
skill.delete
Delete one revision of a namespace’s skill, or the whole skill.
POST /v1/skill.delete · MCP loom_skill_delete · role admin · idempotent · not listed under the MCP all toolset
| Input field | Type | Default | Meaning |
|---|---|---|---|
org |
str |
required | The tenant (first element of the identity tuple). |
namespace |
str |
required | The namespace the op reads or writes. |
name |
str |
required | The skill’s name, as skill.list answers it. |
revision |
int |
0 |
The revision to delete; 0 (the default) deletes the whole skill. |
| Output field | Type | Meaning |
|---|---|---|
deleted_revisions |
int |
How many revisions this call deleted: 1 for a revision, every revision the skill held for the whole skill, and 0 when there was none or an earlier call deleted it. |
archived |
bool |
True when this call stopped the skill being served. |
text_removed |
bool |
Whether the table holds no row this delete removes. |
skill.get
Read one skill: its SKILL.md, its frontmatter and the files beside it.
POST /v1/skill.get · MCP loom_skill_get · role viewer · read · not listed under the MCP all toolset
| Input field | Type | Default | Meaning |
|---|---|---|---|
org |
str |
required | The tenant (first element of the identity tuple). |
namespace |
str |
required | The namespace the op reads or writes. |
name |
str |
required | The skill’s name, as skill.list answers it. |
kind |
Literal['team', 'builtin'] |
'team' |
builtin reads a skill the server image holds, team one a namespace holds; default team. |
include_files |
bool |
False |
Fill text on every entry of files; default false answers each file’s size and digest without its text. |
path |
str |
'' |
Answer in files only this file, with its text; a path the skill does not hold answers no file, and empty (the default) lists every file. |
revision |
int |
0 |
The revision of a namespace’s skill to read; 0 (the default) reads the published one. |
history |
bool |
False |
Fill history with every act recorded on a namespace’s skill; default false. |
| Output field | Type | Meaning |
|---|---|---|
found |
bool |
Whether the skill exists and the caller may read it; when false, every other field is empty. |
namespace |
str |
The namespace that holds the skill; empty for a built-in. |
name |
str |
The frontmatter’s name. |
kind |
Literal['', 'team', 'builtin'] |
builtin for a skill the server image holds, team for one a namespace holds. |
description |
str |
The frontmatter’s description. |
frontmatter |
dict[str, Any] |
The mapping the frontmatter of SKILL.md loads to. |
notice |
str |
What to know before reading the text: for a built-in, the server’s version and how this server serves the skill (mentor.guide, the MCP skills extension, or not at all while mcp_skills_enabled is off), never what a client loaded. |
binding |
SkillBinding |
What {{loom.skill_namespace}} means for this caller, as {namespace, writable}. |
content |
str |
SKILL.md, as stored. |
files |
list[SkillFileEntry] |
Every other file of the skill, by path, each as {path, bytes, sha256, text}; with path, that file alone. |
origin |
SkillOrigin |
Where the files come from, as source: {repo, path, commit}; for a built-in, its tracked path at the serving build’s commit, with repo empty. |
build_commit |
str |
The commit of the serving build; empty when the build does not know it. |
revision |
int |
The revision answered; 0 for a built-in, and when revision=0 was asked and no revision is published. |
content_sha256 |
str |
The hash of the answered revision’s files, as skill.check computes it. |
state |
Literal['', 'published', 'unpublished', 'archived'] |
The skill’s state: published, unpublished or archived. |
revision_state |
Literal['', 'draft', 'published', 'rejected', 'superseded', 'withdrawn'] |
The answered revision’s state: draft, published, rejected, superseded or withdrawn; empty when no revision is answered. |
unserved_content |
str |
SKILL.md of a revision that is not published. |
unserved_files |
list[SkillFileEntry] |
The other files of a revision that is not published, as files lists them. |
author |
str |
The actor that saved the answered revision; empty when sign-in is off. |
approved_by |
str |
The actor that published the answered revision; empty unless it is the published one. |
published_at |
datetime | None |
When the answered revision was published; None unless it is the published one. |
contributors |
list[str] |
Everyone who saved part of the answered revision’s unpublished text: each saver’s subject and the principal that created its token. |
open_draft |
SkillOpenDraft | None |
The latest revision when no decision names it; None when the skill has no open draft, and for a caller who may not write to the namespace. |
operations |
list[SkillOperation] |
The operations and MCP tools the answered revision named when it was saved, against this build’s registry. |
history |
list[SkillHistoryEntry] |
With history, every act recorded on the skill, oldest first, each decision with its note; empty for a caller who may not write to the namespace. |
skill.list
List skills: the ones the caller’s namespaces hold, then the ones built into the server image.
POST /v1/skill.list · MCP loom_skill_list · role viewer · read · not listed under the MCP all toolset
| Input field | Type | Default | Meaning |
|---|---|---|---|
org |
str |
required | The tenant (first element of the identity tuple). |
namespace |
str |
required | The namespace the op reads or writes. |
namespace_scope |
Literal['this', 'all_mine'] |
'all_mine' |
Which namespaces: this reads the addressed namespace alone, all_mine (the default) also the caller’s other namespaces, up to the search fan-out’s cap. |
kind |
Literal['team', 'builtin', 'all'] |
'all' |
Which skills: builtin (the ones the server image holds), team (the ones a namespace holds) or all; default all. |
state |
Literal['published', 'unpublished', 'archived', 'all'] |
'published' |
Keep the skills in this state: published (a revision is served; the default), unpublished (none is, and the skill was not archived), archived or all. |
open_draft_only |
bool |
False |
Keep only the skills whose latest revision is a draft; default false. |
query |
str |
'' |
Keep the skills whose name or description holds this text, in any case; empty (the default) keeps every skill. |
limit |
int |
50 |
Skills per page; default 50. |
cursor |
str |
'' |
The next_cursor of the previous page; empty (the default) for the first page. |
count_only |
bool |
False |
Answer total and no rows; default false. |
| Output field | Type | Meaning |
|---|---|---|
skills |
list[SkillRow] |
The page’s skills: a namespace’s first (the addressed namespace, then the others in the fan-out’s order, each by name), the built-in ones last; empty with count_only. |
total |
int |
How many skills the caller may see match kind, state, open_draft_only and query, over every page. |
next_cursor |
str |
Pass as cursor for the next page; empty on the last page and with count_only. |
namespaces_skipped |
list[str] |
The caller’s namespaces the fan-out’s cap left unread. |
skill.save
Save a skill folder as the next draft revision of the namespace’s skill.
POST /v1/skill.save · MCP loom_skill_save · role writer · idempotent · audited · not listed under the MCP all toolset
| Input field | Type | Default | Meaning |
|---|---|---|---|
org |
str |
required | The tenant (first element of the identity tuple). |
namespace |
str |
required | The namespace the op reads or writes. |
files |
list[SkillFile] |
required | Every file of the folder: SKILL.md at the root and the text files beside it. |
expected_revision |
int |
0 |
The latest revision the writer saw; 0 (the default) for a new skill. |
note |
str |
'' |
What this revision changes and why, at most 500 characters. |
source |
SkillSource |
(computed) | Where the files come from, each value at most 512 characters. |
source_class |
str | None |
None |
derived, external or imported to say the text is not the writer’s own; None (the default) records asserted. |
| Output field | Type | Meaning |
|---|---|---|
written |
bool |
True when this call stored a new revision. |
conflict |
bool |
True when the skill moved past expected_revision and the files differ from its latest revision: nothing was stored, and current names that revision. |
namespace |
str |
The namespace that holds the skill. |
name |
str |
The frontmatter’s name; empty when the frontmatter did not load. |
revision |
int |
The revision stored, or the skill’s latest when nothing was stored; 0 for a refused folder. |
content_sha256 |
str |
The hash of the files sent, as skill.check computes it. |
revision_state |
Literal['', 'draft', 'published', 'rejected', 'superseded', 'withdrawn'] |
The state of revision: draft for one this call stored. |
refusals |
list[SkillNote] |
Every rule that refused the save: the package rules of skill.check, and the namespace’s bounds. |
findings |
list[SkillNote] |
What a reviewer may want to read; a finding refuses nothing. |
operations |
list[SkillOperation] |
The operations and MCP tools the text names, as skill.check reports them. |
current |
SkillCurrent | None |
On a conflict, the skill’s latest revision; otherwise None. |