@kvasar/google-stitch 0.1.14 → 0.1.15
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/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/skills/SKILL.md +27 -0
- package/src/tools/list_screens.ts +18 -5
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/skills/SKILL.md
CHANGED
|
@@ -135,6 +135,33 @@ Always structure the tool call as:
|
|
|
135
135
|
|
|
136
136
|
Never call the tool with only a string prompt.
|
|
137
137
|
|
|
138
|
+
### List screens
|
|
139
|
+
|
|
140
|
+
Lists all screens within a given Stitch project.
|
|
141
|
+
|
|
142
|
+
- `list_screens`
|
|
143
|
+
|
|
144
|
+
Required parameters:
|
|
145
|
+
- `projectId`: the Stitch project ID (without the `projects/` prefix)
|
|
146
|
+
|
|
147
|
+
Use this tool when the user wants to:
|
|
148
|
+
- see all generated screens in a project
|
|
149
|
+
- review existing designs
|
|
150
|
+
- inspect project screens before updating or exporting
|
|
151
|
+
|
|
152
|
+
Example prompts:
|
|
153
|
+
- List all screens in project 12345
|
|
154
|
+
- Show me all screens for project 4044680601076201931
|
|
155
|
+
- What screens are in project 12345?
|
|
156
|
+
- Show me the designs in this project
|
|
157
|
+
- List the generated UI screens for project 12345
|
|
158
|
+
|
|
159
|
+
Returns:
|
|
160
|
+
- Array of `Screen` objects
|
|
161
|
+
- Includes fields such as `name`, `title`, `prompt`, `deviceType`, `width`, `height`, and grouping metadata
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
138
165
|
### Screen editing
|
|
139
166
|
|
|
140
167
|
For modifying existing screens:
|
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import { StitchMCPClient } from "../services/stitch-mcp-client.js";
|
|
2
|
+
|
|
3
|
+
interface ListScreensParams {
|
|
4
|
+
projectId: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const listScreensTool = (client: StitchMCPClient) => ({
|
|
2
8
|
name: "list_screens",
|
|
3
|
-
description: "
|
|
4
|
-
|
|
5
|
-
|
|
9
|
+
description: "Lists all screens within a given Stitch project",
|
|
10
|
+
|
|
11
|
+
async execute(_: string, params: ListScreensParams) {
|
|
12
|
+
if (!params?.projectId) {
|
|
13
|
+
throw new Error("projectId is required");
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
return client.request("list_screens", {
|
|
17
|
+
projectId: params.projectId,
|
|
18
|
+
});
|
|
6
19
|
},
|
|
7
|
-
});
|
|
20
|
+
});
|