OpenCode icon

OpenCode

Interact with OpenCode Server API for AI coding assistant sessions

Session → Abort

AI-generated

Summary

Aborts a running OpenCode session.

Inputs

  • sessionId (required) — Select a session to abort.

Output shape

object

Returns the API response indicating the session was aborted, or a default object with success, message, and sessionId.

Links

Discussion