@@ -193,18 +193,12 @@ OpenAPI document available from the running server at `/openapi.json`.
193193
194194In Code Mode, use the built-in ` opencode ` tool namespace first, called inside
195195` execute ` as ` tools.opencode.* ` . These tools skip the shell round-trip and
196- handle discovery and authentication. They cover sessions (` session_rename ` ,
197- ` session_move ` ), worktrees (` worktree_create ` , ` worktree_list ` ,
198- ` worktree_remove ` ), model search (` models ` ), MCP resource discovery and reading
199- (` list_mcp_resources ` , ` read_mcp_resource ` ), schedules (` schedule_create ` ,
200- ` schedule_list ` , ` schedule_pause ` , ` schedule_resume ` , ` schedule_delete ` ), and
201- artifacts (` artifact_create ` , ` artifact_read ` , ` artifact_update ` ,
202- ` artifact_delete ` ).
203-
204- For anything those tools do not cover, use OpenCode's built-in ` api ` command.
205- It uses the same discovery and authentication flow as the TUI and may start the
206- background service when no compatible healthy service is available. It accepts
207- either an HTTP method and path or an OpenAPI operation ID.
196+ handle discovery and authentication; find its tools with Code Mode's ` search ` ,
197+ for example ` search({ namespace: "opencode" }) ` . For anything they do not cover,
198+ use the ` opencode api ` command. It uses the same discovery and authentication
199+ flow as the TUI and may start the background service when no compatible healthy
200+ service is available. It accepts either an HTTP method and path or an OpenAPI
201+ operation ID.
208202
209203Call an endpoint with an HTTP method and path:
210204
0 commit comments