From b4e0cdbe8e41583345a290f90ccd17bd9dd927e7 Mon Sep 17 00:00:00 2001 From: adamelmore <2363879+adamdottv@users.noreply.github.com> Date: Tue, 27 Jan 2026 06:29:14 -0600 Subject: docs(core): plugin tool context updates --- packages/web/src/content/docs/plugins.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packages/web/src/content/docs/plugins.mdx') 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})` }, }), }, -- cgit v1.2.3