Skip to content

Commit 9b5cb34

Browse files
feat: Rename workers bot profiler dependency
Stainless-Generated-From: fa1448d7c5f036b517534546789f98487075e641
1 parent 7115ae8 commit 9b5cb34

2 files changed

Lines changed: 27 additions & 11 deletions

File tree

src/kernel/resources/browsers/webmcp.py

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,16 @@ def invoke_tool(
6060
extra_body: Body | None = None,
6161
timeout: float | httpx.Timeout | None | NotGiven = not_given,
6262
) -> InvocationResult:
63-
"""
64-
Invokes the exact live registration identified by tool_ref and waits
65-
synchronously for its result. Navigation during execution is allowed. If the tab
66-
or embedded frame disappears, or the request times out after invocation begins,
67-
the response reports outcome_unknown and the tool is not retried.
63+
"""Invokes the exact live registration identified by tool_ref.
64+
65+
Non-autosubmit
66+
declarative form tools return after their fields are populated with an
67+
awaiting_submission status. Other tools wait for a terminal result, including
68+
across navigation. Inspect a populated form, obtain any required confirmation,
69+
then submit through Playwright or computer interaction without invoking the tool
70+
again. If the tab or embedded frame disappears, or the request times out after
71+
invocation begins, the response reports outcome_unknown and the tool is not
72+
retried.
6873
6974
Args:
7075
input: Tool input, limited to 1 MiB after JSON serialization.
@@ -168,11 +173,16 @@ async def invoke_tool(
168173
extra_body: Body | None = None,
169174
timeout: float | httpx.Timeout | None | NotGiven = not_given,
170175
) -> InvocationResult:
171-
"""
172-
Invokes the exact live registration identified by tool_ref and waits
173-
synchronously for its result. Navigation during execution is allowed. If the tab
174-
or embedded frame disappears, or the request times out after invocation begins,
175-
the response reports outcome_unknown and the tool is not retried.
176+
"""Invokes the exact live registration identified by tool_ref.
177+
178+
Non-autosubmit
179+
declarative form tools return after their fields are populated with an
180+
awaiting_submission status. Other tools wait for a terminal result, including
181+
across navigation. Inspect a populated form, obtain any required confirmation,
182+
then submit through Playwright or computer interaction without invoking the tool
183+
again. If the tab or embedded frame disappears, or the request times out after
184+
invocation begins, the response reports outcome_unknown and the tool is not
185+
retried.
176186
177187
Args:
178188
input: Tool input, limited to 1 MiB after JSON serialization.

src/kernel/types/browsers/invocation_result.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,13 @@
1111
class InvocationResult(BaseModel):
1212
invocation_id: str
1313

14-
status: Literal["completed", "canceled", "error"]
14+
status: Literal["completed", "canceled", "error", "awaiting_submission"]
15+
"""
16+
awaiting_submission means a non-autosubmit declarative form was populated but
17+
not submitted. Inspect the form, obtain any required confirmation, then submit
18+
through Playwright or computer interaction without invoking the tool again. The
19+
other statuses are terminal results.
20+
"""
1521

1622
error_text: Optional[str] = None
1723

0 commit comments

Comments
 (0)