WorkspaceTools
WorkspaceTools =
object
Defined in: packages/tools/src/workspace/provider.ts:146
createWorkspaceToolProvider’s tools — file tools, bash, optional fetchUrl, and one
combined describeWorkspaceEnv. fetchUrl is present when network is allowed and the
provider was not 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.
Properties
Section titled “Properties”bash:
BashTools["bash"]
Defined in: packages/tools/src/workspace/provider.ts:152
describeWorkspaceEnv
Section titled “describeWorkspaceEnv”describeWorkspaceEnv:
DescribeWorkspaceEnvTool
Defined in: packages/tools/src/workspace/provider.ts:154
editFile
Section titled “editFile”editFile:
FileTools["editFile"]
Defined in: packages/tools/src/workspace/provider.ts:149
fetchUrl?
Section titled “fetchUrl?”
optionalfetchUrl?:FetchUrlTool
Defined in: packages/tools/src/workspace/provider.ts:153
glob:
SearchTools["glob"]
Defined in: packages/tools/src/workspace/provider.ts:151
grep:
SearchTools["grep"]
Defined in: packages/tools/src/workspace/provider.ts:150
readFile
Section titled “readFile”readFile:
FileTools["readFile"]
Defined in: packages/tools/src/workspace/provider.ts:147
writeFile
Section titled “writeFile”writeFile:
FileTools["writeFile"]
Defined in: packages/tools/src/workspace/provider.ts:148