aboutsummaryrefslogtreecommitdiff
path: root/src/domains/history.ts
diff options
context:
space:
mode:
authorPatrick Barattin <p.barattin@gmail.com>2026-10-11 20:25:38 +0200
committerGitHub <noreply@github.com>2026-10-11 23:55:38 +0530
commit014de0ec21936a7a2fd64db9d151e73c79bb44ad (patch)
tree654a0a50eb2a88a14f55458e75dfb55e1c5779f5 /src/domains/history.ts
parent79526b01f4d3cf16c3cfb46313cf1179f0db40ac (diff)
refactor: remove duplicate browser prompt instructions (#35)
Remove browser instruction text repeated across tool descriptions, parameter schemas, tool guidelines and the global browser prompt. Tool names, schemas, handlers and concurrency are unchanged; shared recovery and ownership guidance is now available before and after the browser connects, and the prompt names which tools are serialized versus observations. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'src/domains/history.ts')
-rw-r--r--src/domains/history.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/domains/history.ts b/src/domains/history.ts
index 4b5fa56..b19de2e 100644
--- a/src/domains/history.ts
+++ b/src/domains/history.ts
@@ -18,7 +18,7 @@ export const goBackTool = defineBrowserTool({
label: "Browser Go Back",
description: "Navigate back one page in history.",
promptSnippet: "Go back one page",
- promptGuidelines: ["Use to return to the previous page after navigating."],
+ promptGuidelines: [],
parameters: Type.Object({}),
concurrency: "serialized",
async handler(_a, { client }): Promise<Result<ToolOk, ToolErr>> {
@@ -38,7 +38,7 @@ export const goForwardTool = defineBrowserTool({
label: "Browser Go Forward",
description: "Navigate forward one page in history.",
promptSnippet: "Go forward one page",
- promptGuidelines: ["Use to undo a browser_go_back."],
+ promptGuidelines: [],
parameters: Type.Object({}),
concurrency: "serialized",
async handler(_a, { client }): Promise<Result<ToolOk, ToolErr>> {
@@ -58,7 +58,7 @@ export const reloadTool = defineBrowserTool({
label: "Browser Reload",
description: "Reload the current page.",
promptSnippet: "Reload the page",
- promptGuidelines: ["Use to refresh the page, e.g. after server-side changes."],
+ promptGuidelines: [],
parameters: Type.Object({}),
concurrency: "serialized",
async handler(_a, { client }): Promise<Result<ToolOk, ToolErr>> {