Repository navigation
Commit 8510fa3
Bug 2065398 [wpt PR 62098] - [WebMCP] Implement consequentialHint annotation, a=testonly
Automatic update from web-platform-tests
[WebMCP] Implement consequentialHint annotation
This change implements the consequentialHint annotation for WebMCP script tools (webmachinelearning/webmcp#176), matching the existing untrustedContentHint implementation.
When a tool is registered with consequentialHint: true, this hint is plumbed through Blink's script tool declarations, Mojom IPC annotations, the ScriptTool actor layer, and the Chrome DevTools Protocol (CDP) WebMCP domain. This allows the browser and DevTools to identify tools that perform consequential actions (e.g., booking flights, transferring money).
Bug: 520004016
Test: ModelContextTest.* unit tests
This change implements the consequentialHint annotation for WebMCP script tools, matching the existing untrustedContentHint implementation.
When a tool is registered with consequentialHint: true, this hint is plumbed through Blink's script tool declarations, Mojom IPC annotations, the ScriptTool actor layer, and the Chrome DevTools Protocol (CDP) WebMCP domain. This allows the browser and DevTools to identify tools that perform consequential actions (e.g., booking flights, transferring money).
Bug: 520004016
Test: ModelContextTest.* unit tests
This change implements the consequentialHint annotation for WebMCP script tools, see: webmachinelearning/webmcp#176.
Bug: 520004016
Test: ModelContextTest.* unit tests
Change-Id: I9afce4e86ef9f93f860b7ba80740cb08ed7c3f36
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7985884
Reviewed-by: Dominic Farolino <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Commit-Queue: Julia Pagnucco <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1684148}
--
wpt-commits: dd831980ea563818741ff8fe4cd383bbf04be7f1
wpt-pr: 620981 parent bd0bc1e commit 8510fa3
4 files changed
Lines changed: 10 additions & 2 deletions
File tree
- testing/web-platform/tests
- interfaces
- webmcp/imperative
- resources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| 81 | + | |
78 | 82 | | |
79 | 83 | | |
80 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
0 commit comments