Skip to content

[WASM] Integration tests: Vended tools #2375

@awsarron

Description

@awsarron

Parent issue

strands-agents/sdk-typescript#1104

Scope

Write integration tests validating the built-in vended tools that run inside the WASM guest:

  • BashTool() - persistent shell sessions, command execution, timeout
  • FileEditorTool() - view, create, str_replace, insert operations
  • HttpRequestTool() - HTTP requests via fetch (all methods, headers, timeout)
  • NotebookTool() - named persistent text notebooks with CRUD

Context

Unlike decorated tools (which cross back to Python), vended tools execute entirely inside the WASM guest. They are configured via WIT vended-tool variant arms and instantiated by the TS SDK.

Key areas:

  • Configuration passes correctly from Python dataclass → WIT → TS FunctionTool
  • Tools produce correct results visible in agent responses
  • BashTool/FileEditorTool work with the WASM guest filesystem or host capabilities
  • HttpRequestTool makes real HTTP calls from within WASM

Done when

  • BashTool executes commands and returns output
  • FileEditorTool performs file operations
  • HttpRequestTool makes HTTP requests successfully
  • NotebookTool stores and retrieves content
  • Tools work correctly when used by the model in conversation

Metadata

Metadata

Assignees

Labels

area-toolTool behavior/apienhancementNew feature or requestpythonPull requests that update python code

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions