---
title: "Sketch"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/constant/sketch
markdown: https://docs.nodetool.ai/nodes/nodetool/constant/sketch.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/constant/sketch.md
---

# Sketch

**Type:** `nodetool.constant.Sketch`

**Namespace:** `nodetool.constant`

## Description

Layered sketch document for drawing, masking, and image composition.
    sketch, drawing, canvas, paint, image editor

    Use cases:
    - Pass a sketch document between nodes
    - Edit the sketch directly from the workflow canvas
    - Expose flattened image, mask, and layer outputs for downstream nodes

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| value | `sketch` |  | `{"type":"sketch","id":null,"data":null}` |
| sketch_data | `str` | Serialized editor document (managed by the UI). | `` |
| image | `image` | Flattened composite (filled when you edit in the UI). | `{"type":"image","uri":"","asset_id":null,"data"...` |
| mask | `image` | Mask output when configured in the editor. | `{"type":"image","uri":"","asset_id":null,"data"...` |
| layers | `list` | List of exposed layer image references. | `[]` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `sketch` |  |
| image | `image` |  |
| mask | `image` |  |
| layers | `list[image]` |  |

## Related Nodes

Browse other nodes in the [nodetool.constant](./) namespace.
