@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 +5 -6
- package/dist/index.mjs +2 -2
- package/dist/node_modules/@highagency/pencil-wasm/package.json +1 -1
- package/dist/node_modules/@highagency/pencil-wasm/pencil.d.ts +1 -0
- package/dist/node_modules/@highagency/pencil-wasm/pencil.js +1 -1
- package/dist/node_modules/@highagency/pencil-wasm/pencil.wasm +0 -0
- package/dist/out/mcp-server-darwin-arm64 +0 -0
- package/dist/out/mcp-server-darwin-x64 +0 -0
- package/dist/out/mcp-server-linux-arm64 +0 -0
- package/dist/out/mcp-server-linux-x64 +0 -0
- package/dist/out/mcp-server-windows-arm64.exe +0 -0
- package/dist/out/mcp-server-windows-x64.exe +0 -0
- package/package.json +4 -3
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 >
|
|
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
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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
|
|