diff options
| author | adamelmore <[email protected]> | 2026-01-27 06:29:14 -0600 |
|---|---|---|
| committer | adamelmore <[email protected]> | 2026-01-27 06:29:20 -0600 |
| commit | b4e0cdbe8e41583345a290f90ccd17bd9dd927e7 (patch) | |
| tree | ad642439a6528e2e03855959776be3b3eda3bdf7 /packages/web/src/content/docs/plugins.mdx | |
| parent | 095328faf439fbdc62506f3653875fbfec5c60ab (diff) | |
| download | opencode-b4e0cdbe8e41583345a290f90ccd17bd9dd927e7.tar.gz opencode-b4e0cdbe8e41583345a290f90ccd17bd9dd927e7.zip | |
docs(core): plugin tool context updates
Diffstat (limited to 'packages/web/src/content/docs/plugins.mdx')
| -rw-r--r-- | packages/web/src/content/docs/plugins.mdx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/web/src/content/docs/plugins.mdx b/packages/web/src/content/docs/plugins.mdx index 2033a9d90..ba530a6d9 100644 --- a/packages/web/src/content/docs/plugins.mdx +++ b/packages/web/src/content/docs/plugins.mdx @@ -269,8 +269,9 @@ export const CustomToolsPlugin: Plugin = async (ctx) => { args: { foo: tool.schema.string(), }, - async execute(args, ctx) { - return `Hello ${args.foo}!` + async execute(args, context) { + const { directory, worktree } = context + return `Hello ${args.foo} from ${directory} (worktree: ${worktree})` }, }), }, |
