@opencode-ai/plugin
Advanced tools
+5
-1
| import { tool } from "./tool"; | ||
| export const ExamplePlugin = async (ctx) => { | ||
| return { | ||
| permission: {}, | ||
| tool: { | ||
| mytool: tool({ | ||
| description: "This is a custom tool", | ||
| description: "This is a custom tool tool", | ||
| args: { | ||
@@ -15,3 +16,6 @@ foo: tool.schema.string().describe("foo"), | ||
| }, | ||
| async "chat.params"(_input, output) { | ||
| output.topP = 1; | ||
| }, | ||
| }; | ||
| }; |
+2
-2
| { | ||
| "$schema": "https://json.schemastore.org/package.json", | ||
| "name": "@opencode-ai/plugin", | ||
| "version": "0.0.0-opentui-202510310534", | ||
| "version": "0.0.0-v0-202510310554", | ||
| "type": "module", | ||
@@ -24,3 +24,3 @@ "scripts": { | ||
| "dependencies": { | ||
| "@opencode-ai/sdk": "0.0.0-opentui-202510310534", | ||
| "@opencode-ai/sdk": "0.0.0-v0-202510310554", | ||
| "zod": "4.1.8" | ||
@@ -27,0 +27,0 @@ }, |
8191
1.3%257
1.58%+ Added
- Removed