Download CoDesign Slice
download_sliceDownload designer-exported slice assets from CoDesign by layer object ID, replacing manual cropping for implementation use.
Instructions
Downloads designer-exported CoDesign slice assets from the official slice manifest, matched by layer object_id. Use this for implementation assets instead of using Python/PIL or screenshot cropping. Returns local paths under /.codesign-mcp/artifacts//slices/. Optional filters: format and scales.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sharingUrl | Yes | ||
| password | No | ||
| screenId | No | ||
| objectId | No | ||
| screenName | No | ||
| layerObjectId | Yes | object_id of the slice layer | |
| format | No | Filter exportables by format (png, jpg, svg, etc.) | |
| scales | No | Filter exportables by scale list, e.g. [1, 2] |