Save a skill
save_skillCreates or updates one of the workspace's own skills in the Agent Skills format. Send every file of the skill: SKILL.md (YAML frontmatter with name — lowercase-hyphenated, not an official skill's name — and description: what it does and when to use it; optional license, metadata.version, metadata.shortdrama-category) plus any supporting files. Each save that changes something is a new version (metadata.version if newer, else a patch bump); saving identical files changes nothing. Pass expected_version (the version you loaded) to avoid overwriting a newer save. Use it to keep the user's house style, e.g. "Save this drama's dialogue rules as a skill". Show the user the SKILL.md before saving.
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": {
"files": "<files>"
},
"name": "save_skill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | The skill's files: SKILL.md first (with name and description front matter), then any references or assets. | |
| changelog | No | What changed in this version | |
| expected_version | No | The version you last read; the write is refused with VERSION_CONFLICT if it changed since. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||