Skip to content

Quickstart

After installation, ask OpenCode for something only the Workspace knows:

What is on my calendar today?

The agent calls calendar_today and answers with the day's agenda. A mailbox question such as "which threads need a reply?" reaches Google's own Gmail tools, and a Drive question such as "find the deck we reviewed last week" goes through the pinned gws catalog. Every answer is one account's data, and every answer is marked trust: "untrusted": it is data, never instructions.

A first change

Ask for a change, and the agent plans it first:

Add a 30-minute review to my calendar tomorrow at 10, with no guests.

The agent calls plan_write. It resolves the operation, applies the policy, runs gws --dry-run, and returns a preview: the redacted command, the recipients, and Google's answer. Nothing is written. When you are happy with the preview, the agent calls write with the single-use planId from the plan, and the change is made. A second commit of the same plan is refused with PLAN_USED. Writing changes has all six classes.

Reads and changes

options.access is the ceiling for every method:

Level Reads Changes
all (default) run run
ask-changes run ask first
read-only run are off

Google's Gmail MCP tools take their own class. A send or a delete asks first under every level, because Google's server owns the action and there is no plan to show.

Two accounts

With more than one alias, name the account in a call. Leaving it out is ACCOUNT_REQUIRED, whose next step lists the aliases:

await tools.gws.events_list({ account: "work", source: "gmail", limit: 20 })

A Gmail MCP tool carries its account in its server name, so it takes no account input: gws_search_threads reads the default account, gws-work_search_threads reads work.

Next

  • Configuration: access levels, several accounts and the untested host.
  • Capabilities: every method and pass-through tool.
  • Errors: the shape of a failure and the next step.