You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d78be6c
Browse filesBrowse the repository at this point in the historyBrowse files
feat(mcp)!: preload loop tools, trim schemas, and shorten errors (#4507)
* feat(mcp)!: preload loop tools, trim schemas, and shorten errors
Claude Code defers MCP tool schemas, so each tool a run needs costs a tool
search turn. Mark the 'loop' framework tier (open, snapshot, press, fill,
back, wait, scroll, screenshot) with _meta "anthropic/alwaysLoad", and give
every tool an "anthropic/searchHint" from its command text.
Make the always-loaded schemas lean: debug, the MCP response controls
(cost, responseLevel), and the target alias leave every tool schema. The
controls become operator settings (AGENT_DEVICE_COST,
AGENT_DEVICE_RESPONSE_LEVEL); mcpOutputFormat is removed.
Loop tool descriptions carry their usage guidance from the command help
text, batch documents its step shape with tested examples, MCP errors put
the typed reason beside the code and drop the log path unless the recovery
step reads it, and MCP open text drops the Session state path.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* fix(mcp): restore caller-facing contract facts and type the log-path rule
- Settle fields state the diff is against the pre-action tree and keep the
iOS 300 ms default and broad-replacement floor, tersely.
- open documents initialSnapshotError on a fresh open; customActions keeps
its recovery routes, with the full wording in help snapshot.
- Model-facing errors keep the log path only when the code's default step
reads the log (defaultHintReadsLog), and bound details.reason to one line.
- batch grounds its @E12 example; searchHints carry only words the tool
text lacks, enforced by a test.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* test(mcp): assert the INVALID_ARGS error before checking the log path is absent
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* fix(batch): derive the MCP batch deadline from its timeout policy
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* fix(ai-sdk): keep tier-less commands out of the core tool set
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* fix(mcp): keep the diagnostics log path and full message in agent error text
A producer hint that sends the reader to the runner or diagnostics log lost
the path under the default-hint rule. Agent text now keeps the Log: line
whenever a log exists and the full Message: line when the summary cuts it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* docs(ai-sdk): note the pinned session and platform in tool arguments
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* docs: say which AI SDK fields are refused and that errors include the log path
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* fix(mcp): stop preloading screenshot
Benchmark runs showed that a preloaded screenshot pulls agents into a
screenshot, image read and coordinate-tap detour whenever open returns
before the app is ready, so it moves back to the core tier: still in the
default AI SDK set, loaded on demand over MCP.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* test: drop screenshot from the pinned loop tier set
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* fix(mcp): keep reinstall's search keywords out of its description; format the loop pin
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* docs(mcp): screenshot is no longer always loaded
Co-Authored-By: Claude Opus 5.5 <[email protected]>
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
'Snapshot: name the affordances merged inside an element (iOS sim); not directly invokable — reach them via the detail screen, labeled children, or coordinates',
271
271
inputDescription:
272
-
'Name the affordances an element merged away (iOS UIAccessibilityCustomAction, React Native accessibilityActions) — a card whose reply/options controls are not separate elements still lists them here. The names are for PLANNING, not invocation: there is no API to trigger them, so reach the affordance through the element detail screen, through the same control exposed as a labeled element elsewhere, or by coordinates from its rect. iOS simulator only; costs one accessibility round trip per merged element.',
272
+
"List the custom actions an element merged away, such as a card's reply control. Not invocable: reach the control via its detail screen, a labeled element elsewhere, or its rect. iOS simulator only; costs one accessibility round trip per merged element.",
0 commit comments