auto-chrome-mcp-shared 1.12.0 → 1.13.0
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/dist/index.js +7 -5
- package/dist/index.mjs +7 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -154,7 +154,7 @@ var P_WHEN = 'Run only if this condition holds, e.g. { path: "hit.matches", op:
|
|
|
154
154
|
var P_STOP_IF = "Stop the whole run after this step when the condition holds.";
|
|
155
155
|
var P_REPEAT = 'Repeat group: { max: 1-20, until?: condition, delayMs?: 0-5000 } together with a "steps" array.';
|
|
156
156
|
var P_GROUP_STEPS = "Steps of a repeat group (no repeat inside a repeat).";
|
|
157
|
-
var P_PARAMS = "save: declare { user: { required: true }, pw: { secret: true } }. run: values for {{params.user}}.";
|
|
157
|
+
var P_PARAMS = "save: declare { user: { required: true }, pw: { secret: true } }. run: values for {{params.user}}. schedule with flowId: values for the flow variables.";
|
|
158
158
|
var P_TASK = 'Short label for what this run is doing (max 24 chars). Shows on the MCP tab group while it runs, then goes back to "MCP".';
|
|
159
159
|
var P_HISTORY_RUN_ID = 'action="history": return this one run in full, including its "results".';
|
|
160
160
|
var P_HISTORY_LIMIT = 'action="history": how many runs to list (default 20, max 100).';
|
|
@@ -162,7 +162,8 @@ var P_HISTORY_SINCE = 'action="history": only runs started at or after this time
|
|
|
162
162
|
var P_SCHEDULE = 'action="schedule": { every: "15m"|"1h"|"6h"|"24h" } or { daily: ["08:00"], days?: ["mon"] }.';
|
|
163
163
|
var P_NOTIFY = 'action="schedule": show a Chrome notification when a run fails (default true).';
|
|
164
164
|
var P_REPORT = 'action="schedule": also write the run record to Downloads/mcp-screenshots (default false).';
|
|
165
|
-
var P_LOGIN_CHECK = 'action="schedule": "as" name of the top level step whose stopIf means the login expired.';
|
|
165
|
+
var P_LOGIN_CHECK = 'action="schedule": "as" name of the top level step whose stopIf means the login expired. With flowId: the flow step id that fails when the login expired.';
|
|
166
|
+
var P_FLOW_ID = "action=schedule/unschedule/history: target a published flow id instead of a shortcut name (the id from record_replay_list_published). Error if given together with name.";
|
|
166
167
|
var P_HISTORY_STATUS = 'action="history": keep only these statuses: running, success, failed, stopped, timeout, interrupted, skipped_queue, login_required, user_took_over_tab.';
|
|
167
168
|
var tabIdProp = { type: "number", description: P_TAB_ID };
|
|
168
169
|
var windowIdProp = { type: "number", description: P_WINDOW_ID };
|
|
@@ -234,7 +235,7 @@ var TOOL_SCHEMAS = [
|
|
|
234
235
|
},
|
|
235
236
|
{
|
|
236
237
|
name: TOOL_NAMES.BROWSER.SHORTCUT,
|
|
237
|
-
description: "Save, run and schedule named macros (a chrome_batch step list stored under a name). action: save {name, steps, description} | run (through the normal pipeline) | list | delete | history (past runs) | schedule (run it on a timer with no MCP session) | unschedule | schedules. Use for flows you repeat across sessions (logins, routine collection, overnight checks).",
|
|
238
|
+
description: "Save, run and schedule named macros (a chrome_batch step list stored under a name). action: save {name, steps, description} | run (through the normal pipeline) | list | delete | history (past runs) | schedule (run it on a timer with no MCP session) | unschedule | schedules. schedule/unschedule/history also take a published flow through flowId. Use for flows you repeat across sessions (logins, routine collection, overnight checks).",
|
|
238
239
|
inputSchema: {
|
|
239
240
|
type: "object",
|
|
240
241
|
properties: {
|
|
@@ -247,6 +248,7 @@ var TOOL_SCHEMAS = [
|
|
|
247
248
|
type: "string",
|
|
248
249
|
description: "Shortcut name (save/run/delete/schedule/unschedule)"
|
|
249
250
|
},
|
|
251
|
+
flowId: { type: "string", description: P_FLOW_ID },
|
|
250
252
|
steps: {
|
|
251
253
|
type: "array",
|
|
252
254
|
description: 'action="save": same shape as chrome_batch.steps (max 20, tool/args, or a repeat group).',
|
|
@@ -386,7 +388,7 @@ var TOOL_SCHEMAS = [
|
|
|
386
388
|
},
|
|
387
389
|
{
|
|
388
390
|
name: TOOL_NAMES.RECORD_REPLAY.FLOW_RUN,
|
|
389
|
-
description: "Run a published record-replay flow (recorded in the extension side panel) on this session work tab.
|
|
391
|
+
description: "Run a published record-replay flow (recorded in the extension side panel) on this session work tab. With no work tab it opens one in the background at the flow start URL (the page the flow was recorded on, or the startUrl argument); only when neither exists is the call refused with no_work_tab, and then chrome_navigate makes the work tab. Cannot be nested inside chrome_batch. Returns a summary: success, step counts, first failed step, flow outputs, and tabSource (work_tab | created_from_start_url | explicit).",
|
|
390
392
|
inputSchema: {
|
|
391
393
|
type: "object",
|
|
392
394
|
properties: {
|
|
@@ -405,7 +407,7 @@ var TOOL_SCHEMAS = [
|
|
|
405
407
|
},
|
|
406
408
|
startUrl: {
|
|
407
409
|
type: "string",
|
|
408
|
-
description: "Open this URL in the run tab before the first step."
|
|
410
|
+
description: "Open this URL in the run tab before the first step. Overrides the flow's own start URL, and is also what a work tab is created from when there is none."
|
|
409
411
|
},
|
|
410
412
|
refresh: {
|
|
411
413
|
type: "boolean",
|
package/dist/index.mjs
CHANGED
|
@@ -110,7 +110,7 @@ var P_WHEN = 'Run only if this condition holds, e.g. { path: "hit.matches", op:
|
|
|
110
110
|
var P_STOP_IF = "Stop the whole run after this step when the condition holds.";
|
|
111
111
|
var P_REPEAT = 'Repeat group: { max: 1-20, until?: condition, delayMs?: 0-5000 } together with a "steps" array.';
|
|
112
112
|
var P_GROUP_STEPS = "Steps of a repeat group (no repeat inside a repeat).";
|
|
113
|
-
var P_PARAMS = "save: declare { user: { required: true }, pw: { secret: true } }. run: values for {{params.user}}.";
|
|
113
|
+
var P_PARAMS = "save: declare { user: { required: true }, pw: { secret: true } }. run: values for {{params.user}}. schedule with flowId: values for the flow variables.";
|
|
114
114
|
var P_TASK = 'Short label for what this run is doing (max 24 chars). Shows on the MCP tab group while it runs, then goes back to "MCP".';
|
|
115
115
|
var P_HISTORY_RUN_ID = 'action="history": return this one run in full, including its "results".';
|
|
116
116
|
var P_HISTORY_LIMIT = 'action="history": how many runs to list (default 20, max 100).';
|
|
@@ -118,7 +118,8 @@ var P_HISTORY_SINCE = 'action="history": only runs started at or after this time
|
|
|
118
118
|
var P_SCHEDULE = 'action="schedule": { every: "15m"|"1h"|"6h"|"24h" } or { daily: ["08:00"], days?: ["mon"] }.';
|
|
119
119
|
var P_NOTIFY = 'action="schedule": show a Chrome notification when a run fails (default true).';
|
|
120
120
|
var P_REPORT = 'action="schedule": also write the run record to Downloads/mcp-screenshots (default false).';
|
|
121
|
-
var P_LOGIN_CHECK = 'action="schedule": "as" name of the top level step whose stopIf means the login expired.';
|
|
121
|
+
var P_LOGIN_CHECK = 'action="schedule": "as" name of the top level step whose stopIf means the login expired. With flowId: the flow step id that fails when the login expired.';
|
|
122
|
+
var P_FLOW_ID = "action=schedule/unschedule/history: target a published flow id instead of a shortcut name (the id from record_replay_list_published). Error if given together with name.";
|
|
122
123
|
var P_HISTORY_STATUS = 'action="history": keep only these statuses: running, success, failed, stopped, timeout, interrupted, skipped_queue, login_required, user_took_over_tab.';
|
|
123
124
|
var tabIdProp = { type: "number", description: P_TAB_ID };
|
|
124
125
|
var windowIdProp = { type: "number", description: P_WINDOW_ID };
|
|
@@ -190,7 +191,7 @@ var TOOL_SCHEMAS = [
|
|
|
190
191
|
},
|
|
191
192
|
{
|
|
192
193
|
name: TOOL_NAMES.BROWSER.SHORTCUT,
|
|
193
|
-
description: "Save, run and schedule named macros (a chrome_batch step list stored under a name). action: save {name, steps, description} | run (through the normal pipeline) | list | delete | history (past runs) | schedule (run it on a timer with no MCP session) | unschedule | schedules. Use for flows you repeat across sessions (logins, routine collection, overnight checks).",
|
|
194
|
+
description: "Save, run and schedule named macros (a chrome_batch step list stored under a name). action: save {name, steps, description} | run (through the normal pipeline) | list | delete | history (past runs) | schedule (run it on a timer with no MCP session) | unschedule | schedules. schedule/unschedule/history also take a published flow through flowId. Use for flows you repeat across sessions (logins, routine collection, overnight checks).",
|
|
194
195
|
inputSchema: {
|
|
195
196
|
type: "object",
|
|
196
197
|
properties: {
|
|
@@ -203,6 +204,7 @@ var TOOL_SCHEMAS = [
|
|
|
203
204
|
type: "string",
|
|
204
205
|
description: "Shortcut name (save/run/delete/schedule/unschedule)"
|
|
205
206
|
},
|
|
207
|
+
flowId: { type: "string", description: P_FLOW_ID },
|
|
206
208
|
steps: {
|
|
207
209
|
type: "array",
|
|
208
210
|
description: 'action="save": same shape as chrome_batch.steps (max 20, tool/args, or a repeat group).',
|
|
@@ -342,7 +344,7 @@ var TOOL_SCHEMAS = [
|
|
|
342
344
|
},
|
|
343
345
|
{
|
|
344
346
|
name: TOOL_NAMES.RECORD_REPLAY.FLOW_RUN,
|
|
345
|
-
description: "Run a published record-replay flow (recorded in the extension side panel) on this session work tab.
|
|
347
|
+
description: "Run a published record-replay flow (recorded in the extension side panel) on this session work tab. With no work tab it opens one in the background at the flow start URL (the page the flow was recorded on, or the startUrl argument); only when neither exists is the call refused with no_work_tab, and then chrome_navigate makes the work tab. Cannot be nested inside chrome_batch. Returns a summary: success, step counts, first failed step, flow outputs, and tabSource (work_tab | created_from_start_url | explicit).",
|
|
346
348
|
inputSchema: {
|
|
347
349
|
type: "object",
|
|
348
350
|
properties: {
|
|
@@ -361,7 +363,7 @@ var TOOL_SCHEMAS = [
|
|
|
361
363
|
},
|
|
362
364
|
startUrl: {
|
|
363
365
|
type: "string",
|
|
364
|
-
description: "Open this URL in the run tab before the first step."
|
|
366
|
+
description: "Open this URL in the run tab before the first step. Overrides the flow's own start URL, and is also what a work tab is created from when there is none."
|
|
365
367
|
},
|
|
366
368
|
refresh: {
|
|
367
369
|
type: "boolean",
|