diff options
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})` }, }), }, |
