copy_library
Copies selected library files between Takes libraries or projects, merges token files by name, skips existing files, and can move files by trashing them in the source.
Instructions
Copy library files from one library to another: 'style:' or a project name (copy to a new 'style:' to start a new style from an old one). items are paths inside the library (README.md, tokens.json, assets/Logos/mark-v2.svg); omit for everything. tokens.json merges by token name; other existing files are skipped, never overwritten. move=true trashes the copied files in the source.
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": {
"from": "<from>",
"to": "<to>"
},
"name": "copy_library"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | A library: 'style:<Name>' (a new name makes a new style), a project name, or 'comments' (the comment copilot's lessons, target list and best comments). | |
| from | Yes | A library: 'style:<Name>' (a new name makes a new style), a project name, or 'comments' (the comment copilot's lessons, target list and best comments). | |
| move | No | Move instead of copy. Default false. | |
| items | No | Paths inside the library. Omit for everything. |