Skip to content

WorkspaceTools

WorkspaceTools = object

Defined in: workspace/provider.ts:74

createWorkspaceToolProvider’s tools — file tools, bash, optional fetchUrl, and one combined describeWorkspaceEnv. fetchUrl is present unless constructed with fetchUrl: false. Named for its actual scope (this workspace’s own file/bash sandbox plus fetchUrl when enabled), not a generic “describeEnvironment” — a project may have other tools (e.g. a web-search tool) with their own network access this doesn’t cover, so the name shouldn’t imply completeness. A plain object-literal type alias, not interface ... extends FileTools, BashTools — see BashProviderTools’s doc comment (packages/tools/src/bash/provider.ts) for why: an interface anywhere in the shape loses the implicit index signature ToolProvider<Tools extends ToolSet> needs.

bash: BashTools["bash"]

Defined in: workspace/provider.ts:80


describeWorkspaceEnv: DescribeWorkspaceEnvTool

Defined in: workspace/provider.ts:82


editFile: FileTools["editFile"]

Defined in: workspace/provider.ts:77


optional fetchUrl?: FetchUrlTool

Defined in: workspace/provider.ts:81


glob: SearchTools["glob"]

Defined in: workspace/provider.ts:79


grep: SearchTools["grep"]

Defined in: workspace/provider.ts:78


readFile: FileTools["readFile"]

Defined in: workspace/provider.ts:75


writeFile: FileTools["writeFile"]

Defined in: workspace/provider.ts:76