Fix inconsistencies found by consistency audit of 395f76e
This commit is contained in:
@@ -96,10 +96,10 @@ func (m *Manager) clientTools(l *live) []mcp.Tool {
|
||||
},
|
||||
{
|
||||
Name: "show_page",
|
||||
Description: "Show the human a file from the Mac byre runs on, or a website, in byre's app on a client Mac, rendered in the page view beside this task's transcript, as a browser would show it: an HTML page (loading the stylesheets, scripts and images beside it), a PDF, an image, or (with url) a web page in a new tab. " +
|
||||
Description: "Show the human a file from the Mac byre runs on, or a website, in byre's app on a client Mac, rendered in the Page view beside this task's transcript, as a browser would show it: an HTML page (loading the stylesheets, scripts and images beside it), a PDF, an image, or (with url) a web page in a new tab. " +
|
||||
"A page loads other files only by relative paths (style.css, ../img/cat.png); absolute paths and file:// addresses don't load. " +
|
||||
"Whenever you write or change a file the human should see as it looks (an HTML mockup or preview, a PDF, an image, an SVG), show it with this before your turn ends, without being asked or asking first. " +
|
||||
"When work needs a website (a developer console, a dashboard, a settings page), open it with url and work in it with drive_page rather than asking the human to open it; the page view keeps its sign-ins, so ask the human only to sign in. " +
|
||||
"When work needs a website (a developer console, a dashboard, a settings page), open it with url and work in it with drive_page rather than asking the human to open it; the Page view keeps its sign-ins, so ask the human only to sign in. " +
|
||||
"Show it on the Mac the human's latest message was sent from.",
|
||||
InputSchema: json.RawMessage(`{
|
||||
"type": "object",
|
||||
@@ -116,19 +116,19 @@ func (m *Manager) clientTools(l *live) []mcp.Tool {
|
||||
},
|
||||
{
|
||||
Name: "drive_page",
|
||||
Description: "Work in the tabs of this task's page view in byre's app on a client Mac, which show_page opened: the human sees each step there as it happens. " +
|
||||
Description: "Work in the tabs of this task's Page view in byre's app on a client Mac, which show_page opened: the human sees each step there as it happens. " +
|
||||
"It needs no mouse or keyboard, so it never disturbs the human. " +
|
||||
"ops: tabs (list the tabs: number, title, address, and which one shows), navigate (load url in the tab and wait for it), " +
|
||||
"js (run code in the tab's page: the body of an async function, so await works and return gives the result; strings come back as they are, other values as JSON; use it to read the DOM, click (element.click()) and fill fields (set value, then dispatch input and change events)), " +
|
||||
"capture (see the tab as it's drawn; only the tab the page view shows can be captured, and only while the human has the page view open). " +
|
||||
"Without tab, it acts on the tab the page view shows. Links that open a new window open as new tabs. " +
|
||||
"capture (see the tab as it's drawn; only the tab the Page view shows can be captured, and only while the human has the Page view open). " +
|
||||
"Without tab, it acts on the tab the Page view shows. Links that open a new window open as new tabs. " +
|
||||
"A page's alert, confirm or prompt asks the human, and the js call waits for the answer; while the tab isn't showing, they answer Cancel at once.",
|
||||
InputSchema: json.RawMessage(`{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"client": {"type": "string", "description": "The client's name from list_clients, or its id when several are connected from that Mac."},
|
||||
"op": {"type": "string", "enum": ["tabs", "navigate", "js", "capture"]},
|
||||
"tab": {"type": "integer", "description": "The tab's number from tabs (default: the tab the page view shows)."},
|
||||
"tab": {"type": "integer", "description": "The tab's number from tabs (default: the tab the Page view shows)."},
|
||||
"url": {"type": "string", "description": "For navigate."},
|
||||
"code": {"type": "string", "description": "For js."}
|
||||
},
|
||||
@@ -520,7 +520,7 @@ func (m *Manager) show(ctx context.Context, l *live, raw json.RawMessage, tool s
|
||||
return "", err
|
||||
}
|
||||
if op == api.OpenPage && fi.IsDir() {
|
||||
return "", fmt.Errorf("%s is a directory; the page view shows a file", args.Path)
|
||||
return "", fmt.Errorf("%s is a directory; the Page view shows a file", args.Path)
|
||||
}
|
||||
|
||||
shown := full
|
||||
|
||||
Reference in New Issue
Block a user