refactor(observation): retain complete tool results
This commit is contained in:
@@ -202,7 +202,7 @@ export const BROWSER_TOOL_CONTRACTS = [
|
||||
name: "discover_webmcp_tools",
|
||||
...toolContractMetadata("discover_webmcp_tools"),
|
||||
description:
|
||||
"Passively inventory page-registered WebMCP tools using the experimental CDP WebMCP domain. Metadata is bounded and page-declared-untrusted; REA never registers or invokes discovered tools.",
|
||||
"Passively inventory every page-registered WebMCP tool and its complete structural input-schema summary using the experimental CDP WebMCP domain. Metadata is page-declared-untrusted; REA never registers or invokes discovered tools.",
|
||||
kind: "browser-provider",
|
||||
inputSchema: discoverWebMcpToolsInputSchema,
|
||||
outputSchema: webMcpOutputSchema,
|
||||
@@ -214,10 +214,6 @@ export const BROWSER_TOOL_CONTRACTS = [
|
||||
allowed_origins: [origin],
|
||||
target_id: "TARGET_ID_FROM_LIST_BROWSER_TARGETS",
|
||||
observation_ms: 100,
|
||||
max_tools: 500,
|
||||
max_schema_bytes: 262_144,
|
||||
max_schema_nodes: 5_000,
|
||||
max_schema_depth: 20,
|
||||
},
|
||||
},
|
||||
],
|
||||
@@ -226,7 +222,7 @@ export const BROWSER_TOOL_CONTRACTS = [
|
||||
name: "compare_web_captures",
|
||||
...toolContractMetadata("compare_web_captures"),
|
||||
description:
|
||||
"Compare passive web captures by providing before and after, or compare recorded scenarios by providing before_scenario and after_scenario with an optional normalization policy. Use exactly one input group. Scenario comparison aligns exact step IDs, records deterministic literal normalization, and exposes bounded artifact-level changes plus alignment failures. Missing or truncated evidence never proves equality.",
|
||||
"Compare passive web captures by providing before and after, or compare recorded scenarios by providing before_scenario and after_scenario with an optional normalization policy. Use exactly one input group. Scenario comparison aligns exact step IDs, records deterministic literal normalization, and returns every artifact-level difference plus alignment failures inline. Missing or truncated evidence never proves equality.",
|
||||
kind: "browser-provider",
|
||||
inputSchema: browserCaptureComparisonInputSchema,
|
||||
outputSchema: captureDiffOutputSchema,
|
||||
@@ -246,7 +242,6 @@ export const BROWSER_TOOL_CONTRACTS = [
|
||||
},
|
||||
],
|
||||
},
|
||||
max_changes: 2_000,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
@@ -76,7 +76,6 @@ describe("tool contract surface", () => {
|
||||
"before_scenario",
|
||||
"after_scenario",
|
||||
"normalization",
|
||||
"max_changes",
|
||||
]),
|
||||
);
|
||||
const example = contract.examples[0];
|
||||
|
||||
Reference in New Issue
Block a user