@pen.dev/cli 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -171,7 +171,7 @@ pen > get_app_state({ include_schema: true })
171
171
  pen > get_guidelines()
172
172
  pen > get_guidelines({ category: "guide", name: "Landing Page" })
173
173
  pen > execute({ input: 'rect=Insert(document,{type:"rectangle",name:"Foo",x:10,y:10,width:300,height:200,fill:"#E5484D"})' })
174
- pen > get_screenshot({ nodeId: "hero" })
174
+ pen > execute({ input: 'TakeScreenshot([rect])' })
175
175
  pen > save()
176
176
  pen > exit()
177
177
  ```
@@ -205,15 +205,14 @@ The CLI supports the following MCP tools with full feature parity to the desktop
205
205
 
206
206
  | Tool | Description |
207
207
  |------|-------------|
208
- | `execute` | Insert, Update, Delete, Move, Copy, Replace, SetVariables, GetVariables, Get, Print, Generate, FindEmptySpace |
208
+ | `execute` | Insert, Update, Delete, Move, Copy, Replace, SetVariables, GetVariables, Get, Print, Generate, FindEmptySpace, TakeScreenshot, Export |
209
209
  | `get_app_state` | Get document metadata and structure |
210
210
 
211
211
  ### Visual Operations (headless rendering via CanvasKit)
212
212
 
213
- | Tool | Description |
214
- |------|-------------|
215
- | `get_screenshot` | Render a node to PNG image |
216
- | `export_nodes` | Export nodes to images in PNG/JPEG/WEBP/PDF formats |
213
+ Screenshots are taken with the `execute` `TakeScreenshot()` operation. Files
214
+ are exported with the `execute` `Export()` operation, which supports
215
+ PNG/JPEG/WEBP/PDF images and HTML output.
217
216
 
218
217
  ### Image Generation
219
218