import { tool } from "@opencode-ai/plugin" import { $ } from "bun" export default tool({ description: "Get a specific issue with all details and comments using tea CLI", args: { issueNumber: tool.schema.number().describe("Issue number/index"), }, async execute(args) { const result = await $`tea issues ${args.issueNumber} --comments --output json`.text() return result.trim() }, })