mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-14 20:21:39 +03:00
docs(core): keep the opencode skill's tool guidance to the namespace (#62376)
This commit is contained in:
@@ -193,18 +193,12 @@ OpenAPI document available from the running server at `/openapi.json`.
|
||||
|
||||
In Code Mode, use the built-in `opencode` tool namespace first, called inside
|
||||
`execute` as `tools.opencode.*`. These tools skip the shell round-trip and
|
||||
handle discovery and authentication. They cover sessions (`session_rename`,
|
||||
`session_move`), worktrees (`worktree_create`, `worktree_list`,
|
||||
`worktree_remove`), model search (`models`), MCP resource discovery and reading
|
||||
(`list_mcp_resources`, `read_mcp_resource`), schedules (`schedule_create`,
|
||||
`schedule_list`, `schedule_pause`, `schedule_resume`, `schedule_delete`), and
|
||||
artifacts (`artifact_create`, `artifact_read`, `artifact_update`,
|
||||
`artifact_delete`).
|
||||
|
||||
For anything those tools do not cover, use OpenCode's built-in `api` command.
|
||||
It uses the same discovery and authentication flow as the TUI and may start the
|
||||
background service when no compatible healthy service is available. It accepts
|
||||
either an HTTP method and path or an OpenAPI operation ID.
|
||||
handle discovery and authentication; find its tools with Code Mode's `search`,
|
||||
for example `search({ namespace: "opencode" })`. For anything they do not cover,
|
||||
use the `opencode api` command. It uses the same discovery and authentication
|
||||
flow as the TUI and may start the background service when no compatible healthy
|
||||
service is available. It accepts either an HTTP method and path or an OpenAPI
|
||||
operation ID.
|
||||
|
||||
Call an endpoint with an HTTP method and path:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user