apply_changeset
Apply an atomic ordered semantic changeset to a LinkML workspace, validating edits against a base commit and returning a new commit ID. Supports create, delete, rename, and field operations.
Instructions
Apply an atomic ordered semantic changeset to a LinkML workspace. Requires base_commit; validates before and after edits; returns a new commit id. Supported operations include create/delete/rename class, slot, enum, prefix, import, file, plus set_field, unset_field, list_append, list_remove, list_replace, map_set, and map_remove.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace_id": "<workspace_id>",
"base_commit": "<base_commit>",
"changes": "<changes>"
},
"name": "apply_changeset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | Ordered semantic operations to apply atomically. | |
| message | No | Optional git commit message. | |
| base_commit | Yes | Git commit id that the new commit should use as its parent. | |
| workspace_id | Yes | Workspace id returned by init_workspace. |