lace-mcp 0.0.2-alpha.20 → 0.0.2-alpha.22
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 +1 -1
- package/SKILL.md +14 -1
- package/dist/cli.js +40791 -39189
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ The Lace desktop app must be open and signed in for the MCP server to work.
|
|
|
29
29
|
| Tool | Description |
|
|
30
30
|
| --- | --- |
|
|
31
31
|
| `search_decisions` | Search and filter resolved decisions with pagination. No params returns the top 20 |
|
|
32
|
-
| `apply_decision` | Implementation kit for a decision: screenshots, targeting, instructions. `include` controls detail level |
|
|
32
|
+
| `apply_decision` | Implementation kit for a decision: screenshots, targeting, instructions. `include` controls detail level (`discussion` requires the canvas owner to enable chat sharing) |
|
|
33
33
|
| `list_canvases` | Browse review canvases with page names and decision counts |
|
|
34
34
|
| `list_projects` | Browse projects with thread and canvas counts |
|
|
35
35
|
|
package/SKILL.md
CHANGED
|
@@ -13,10 +13,23 @@ Lace surfaces adoption insights as actionable decisions. When a decision is appr
|
|
|
13
13
|
2. If the workspace has many canvases or projects, call `list_canvases` or `list_projects` first and use the returned IDs/titles to scope `search_decisions`.
|
|
14
14
|
3. If there is exactly one relevant decision, proceed with it. If there are multiple plausible matches, ask the user which one to implement.
|
|
15
15
|
4. Call `apply_decision` with the chosen decision ID.
|
|
16
|
-
5. Use `include: "instructions"` by default. Use `include: "crop"` for a cropped element image, `include: "discussion"` for thread
|
|
16
|
+
5. Use `include: "instructions"` by default. Use `include: "crop"` for a cropped element image, `include: "discussion"` for review thread chat history (requires the canvas owner to enable chat sharing), or `include: "all"` for instructions, crop, and chat history combined.
|
|
17
17
|
6. Follow the implementation instructions returned by `apply_decision` exactly — they include screenshots, element targeting, and constraints.
|
|
18
18
|
7. Implement the minimal code change described. Do not refactor or modify anything outside the target element.
|
|
19
19
|
|
|
20
|
+
## Element Grounding Strategies
|
|
21
|
+
|
|
22
|
+
When `apply_decision` returns metadata, use these fields to locate the target element accurately:
|
|
23
|
+
|
|
24
|
+
1. **Visible text + role** — primary locator. Match the element's `label` text and `role` (button, link, textfield, etc.) in the DOM or component tree.
|
|
25
|
+
2. **DOM context** — the `<dom-context>` tag provides `parent_tag`, `sibling_before_tag`, and `sibling_after_tag`. Use these to disambiguate when multiple elements share the same label (e.g., two "Save" buttons in different sections).
|
|
26
|
+
3. **Page vocabulary** — the `<page-elements>` list shows nearby elements with `in:parentTag` context. Scan it to understand the target's neighborhood and confirm you're editing the right instance.
|
|
27
|
+
4. **Bbox coordinates** — normalized 0–100 percentages. Use as a spatial hint (top-left vs bottom-right), not a pixel-precise locator. Helpful when text matching is ambiguous.
|
|
28
|
+
5. **Anchor state** — `anchor_state="detached"` means the element moved since the review. Fall back to text + role matching, then sibling context, then ask the user. `anchor_state="reanchored"` means the system re-found it — trust the current metadata.
|
|
29
|
+
6. **Crop image** — `include="crop"` returns both the full page screenshot and a zoomed crop of the target element. Use the full screenshot for spatial context and the crop for visual detail.
|
|
30
|
+
|
|
31
|
+
**Priority order:** visible text + role → DOM context / siblings → vocabulary neighbors → bbox position → crop image.
|
|
32
|
+
|
|
20
33
|
## Troubleshooting
|
|
21
34
|
|
|
22
35
|
- If `search_decisions` returns an authentication error, tell the user to run `npx lace-mcp install <editor>` to re-authenticate.
|