HomeDocsAPI@astack-tech/toolsPACKAGE@astack-tech/toolsTool definitions for AStack agents: createTool, tool sets, component tools and MCP tools.ClassesComponentToolExposes a component as a tool. The component runs in standalone mode through run().DefaultToolSetMap-backed ToolSet implementation.MCPToolExposes one MCP service method as a tool.FunctionscreateComponentToolCreates a tool that runs a component.createMCPToolCreates a tool that calls an MCP service method.createToolCreates a tool from a plain function.createToolSetCreates a ToolSet from a list of tools.InterfacesComponentToolConfigOptions for ComponentTool.MCPClientMinimal client interface that MCPTool needs. Adapt your MCP SDK client to it.MCPToolConfigOptions for MCPTool.ToolA capability that an agent can call by name.ToolCallA tool call requested by a model.ToolCallResultThe result of a tool call.ToolParametersJSON Schema object that describes the arguments of a tool.ToolSetA collection of tools indexed by name.Type aliasesToolFunctionFunction that implements a tool. It may return a value or a promise.VariablesdefaultDefault export kept for backward compatibility. Prefer the named exports.