Skip to content

Commit 682dd25

Browse files
authored
docs(core): keep the opencode skill's tool guidance to the namespace (#62376)
1 parent 8923a8d commit 682dd25

1 file changed

Lines changed: 6 additions & 12 deletions

File tree

‎packages/core/src/plugin/skill/opencode.md‎

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -193,18 +193,12 @@ OpenAPI document available from the running server at `/openapi.json`.
193193

194194
In 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

209203
Call an endpoint with an HTTP method and path:
210204

0 commit comments

Comments
 (0)