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