GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — The new custom tool ToolContext doesn't expose project, directory, and worktree as the docs example · Issue #2683 · anomalyco/opencode Closed DescriptionThe custom tool docs page gives this example import { tool } from "@opencode-ai/plugin" export default tool({ description: "Get project information", args: {}, async execute(args, context) { // Access context information const { project, directory, worktree } = context return `Project: ${project.name}, Directory: ${directory}` }, }) where as in the source code at packages/plugin/src/tool.ts the context is only export type ToolContext = { sessionID: string messageID: string agent: string abort: AbortSignal } I am writing a tool that need the information of the directory where opencode is running. How can I get this info? UPDATE: I figured I can just use ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |