refactor: return complete tool results inline

This commit is contained in:
morluto
2026-09-29 07:08:46 +08:00
parent 2160d4fae5
commit 0d96275b68
535 changed files with 4084 additions and 13537 deletions
+1 -4
View File
@@ -65,7 +65,6 @@ const scenarioArtifacts = {
storage: { state: "not_requested" },
};
const exampleScenarioCapture = () => ({
schema_version: 1,
browser: {
mode: "connect",
process_ownership: "external",
@@ -121,7 +120,7 @@ export const BROWSER_TOOL_CONTRACTS = [
name: "list_browser_targets",
...toolContractMetadata("list_browser_targets"),
description:
"List bounded page targets from an approved user-owned loopback Chrome DevTools Protocol endpoint. Only targets whose current URL matches an approved exact origin are returned; URL credentials, query values, and fragments are redacted.",
"List every page target from an approved user-owned loopback Chrome DevTools Protocol endpoint whose current URL matches an approved exact origin. URL credentials, query values, and fragments are redacted.",
kind: "browser-provider",
inputSchema: listBrowserTargetsInputSchema,
outputSchema: listOutputSchema,
@@ -132,8 +131,6 @@ export const BROWSER_TOOL_CONTRACTS = [
cdp_endpoint: endpoint,
allowed_origins: [origin],
approved: true,
offset: 0,
limit: 100,
},
},
],