api-sketches
БесплатноБез исполняемых скриптовНе проверенCall nodetool.sketches from a code action: create a sketch (layered image document), read it, add, arrange and restyle layers, place images on layers, resize…
от nodetool-ai★ 674 звезды на GitHubОб этом скилле
nodetool.sketches
A sketch is an image document: a canvas, a stack of layers, and the bindings
that say where the picture of a layer comes from. How to compose one is
nodetool-sketch. This is the call reference. One finished image with no
layers to keep is nodetool.media.generateImage, not a sketch.
| Call | Does | Answers |
|---|---|---|
list({query, limit}) |
Lists sketches, newest first. | Rows with id, name and canvas size |
create(name, {width, height, background_color, project_id, id}) |
Creates a blank canvas. The defaults are 1024×1024 on #ffffff. An existing id you own is returned instead of a copy. |
{image_document_id, …} |
get(id) |
Reads the document: canvas, background, layers, bindings. Layer bitmaps stay opaque. | The document |
edit(id, ops) |
Applies layer ops in order and saves. An open editor picks the change up live. | The result of each op |
validate(idOrDocument, {width, height, background_color}) |
Checks the structure without a render. For an inline document, pass the canvas it is stored against so a mismatch is reported. | {ok, issues} |
render(idOrDocument, {format, width, height, background, layer_id, mask}) |
Composites the sketch as the editor does and saves it. format is "png" (default) or "psd". One of width and height alone keeps the aspect ratio. layer_id renders one layer alone, mask the inpainting mask. The PNG is transparent unless background is set. |
{image, width, height, layers}. image.uri is the saved asset. Each layer row says whether it was drawn and, if not, why |
versions(id, {save_type, limit}), getVersion(id, n) |
Lists and reads whole-document snapshots. | Version rows, newest first |
snapshot(id, {name}) |
Saves a manual version. | The version number |
restore(id, n) |
Rolls back. The state it replaces is snapshotted first. | The findings of the validation after the restore |
deleteVersion(id, n) |
Deletes one snapshot. This cannot be undone. | — |
delete(id) |
Deletes the sketch and all its versions. This cannot be undone. Deleting every version leaves the sketch in place. | {image_document_id, deleted} |
Ops
target is a layer id, its name, or "active". Layer index 0 is the
bottom layer.
| Op | Arguments |
|---|---|
add_layer |
name?, type? ("raster" or "mask"), index?, image?, x?, y?, width?, height? |
remove_layer |
target |
rename_layer |
target, name |
set_layer_props |
target, visible?, locked?, opacity?, blendMode? |
set_layer_image |
target, image, x?, y?, width?, height? |
reorder_layer |
target, index |
duplicate_layer |
target |
select_layer |
target |
resize_canvas |
width, height |
set_setup |
brief?, use_case?, variations?, stage? — the state of the guided image flow. It renders nothing. |
imageis an asset id, anasset://locator, adata:URL or an http(s) URL. The layer points at it and the editor draws it at its natural size from the top-left of{x, y, width, height}, which defaults to the whole canvas. Pass the dimensions of the image when you know them.use_caseisscene,product,portrait,key-art,social,logo,conceptortexture, and it also sets the canvas size.- Ops never paint. Painting and generation happen in an open editor or a
workflow run.
renderis the one call that reads pixels, and it writes only the output asset.
const { image_document_id: id } = await nodetool.sketches.create("Poster",
{ width: 1080, height: 1350 });
await nodetool.sketches.edit(id, [
{ op: "add_layer", name: "Backdrop", image: bgUri },
{ op: "add_layer", name: "Product", image: productUri, x: 240, y: 300, width: 600, height: 600 },
{ op: "set_layer_props", target: "Product", blendMode: "normal", opacity: 1 }
]);
const check = await nodetool.sketches.validate(id);
const { image } = await nodetool.sketches.render(id, { width: 540 });
Установить api-sketches в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл api-sketches?
Call nodetool.sketches from a code action: create a sketch (layered image document), read it, add, arrange and restyle layers, place images on layers, resize the canvas, validate it, render it to a PNG or PSD, manage its versions, and delete it. Load before the first call into nodetool.sketches.
Как установить скилл api-sketches?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл api-sketches запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic