Skip to content

browser_execute: docs cleanup + parameter description standardization#55

Merged
Alezander9 merged 4 commits into
mainfrom
cleanup/browser-execute-docs
May 11, 2026
Merged

browser_execute: docs cleanup + parameter description standardization#55
Alezander9 merged 4 commits into
mainfrom
cleanup/browser-execute-docs

Conversation

@Alezander9
Copy link
Copy Markdown
Member

Summary

browser_execute tool surface cleanup. No behavior changes.

  • Schema field order (1e264bcd8): code -> timeout? -> description, matching the shell tool. Prevents the model from being walled into a stated intent before reading the snippet.
  • Skill rename (85fc1d339): BROWSER.md -> browser-execute-guide.md. Old name was generic; new name signals what the file is for.
  • Cloud-browser consolidation (6119a41fa): Drops cloud-browser.md; Way 3 (provision/stop a BU cloud browser via raw HTTP) now lives in the main guide. Adds runtime self-discovery hints (Object.keys(session.domains), CdpError.data for missing-field detail) and makes Way 4 (env-preconfigured BU_CDP_WS/BU_CDP_URL) explicit.
  • Parameter descriptions (2aa3e2ae7): Annotation style aligned with the shell tool. code points at the guide for the snippet model; timeout uses the canonical "Optional X (default Y, max Z)" format; description matches its own field name.

Net: -266 / +80 lines across the guide + supporting files. Embedded skills payload shrinks ~5 KB (cloud-browser.md removed).

bcode added 4 commits May 10, 2026 17:42
Providers stream tool-call args in schema-declared order, so a leading description field commits the model to a stated intent before code generation. Matches the shell tool's command-first, description-last shape.
Renames the primary browser_execute guide and updates every code/doc reference. The file's role is the same; the name now states what it documents.
Single skill file is sufficient: agent can derive stop/swap behavior from the inline Way 3 example plus the BU API docs link. Rewrites guide intro and Way sections for concision, adds runtime self-discovery hints (Object.keys(session.domains), CdpError.data) so the agent can probe the CDP surface without docs round-trip. Updates README, src/index.ts, src/skills.ts, opencode comment, and skills test to drop cloud-browser.md references.
Aligns annotation style with the shell tool: code mentions the snippet model and points at the guide; timeout uses the canonical 'Optional X (default Y, max Z)' format; description swaps 'summary' for 'description' to match the field name. Tool top-line tightened and a Returns bullet added in browser-execute.txt.
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 12 files

@Alezander9 Alezander9 merged commit 71f2997 into main May 11, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant