@mastra/client-js 1.47.0-alpha.1 → 1.47.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3993,12 +3993,17 @@ var MCPTool = class extends BaseResource {
3993
3993
  /**
3994
3994
  * Executes this specific tool on the MCP server.
3995
3995
  * @param params - Parameters for tool execution, including data/args and optional requestContext.
3996
- * @returns Promise containing the result of the tool execution.
3996
+ * On a 2026-07-28 server a tool can answer `{ status: 'suspended', suspendPayload, resumeSchema }`;
3997
+ * call again with the same `data` plus `resumeData` (matching `resumeSchema`) and the echoed
3998
+ * `suspendPayload` to continue it.
3999
+ * @returns Promise containing `{ result }`, or the suspended shape described above.
3997
4000
  */
3998
4001
  execute(params) {
3999
4002
  const body = {};
4000
4003
  if (params.data !== void 0) body.data = params.data;
4001
4004
  if (params.requestContext !== void 0) body.requestContext = params.requestContext;
4005
+ if (params.resumeData !== void 0) body.resumeData = params.resumeData;
4006
+ if (params.suspendPayload !== void 0) body.suspendPayload = params.suspendPayload;
4002
4007
  return this.request(`/mcp/${encodeURIComponent(this.serverId)}/tools/${encodeURIComponent(this.toolId)}/execute`, {
4003
4008
  method: "POST",
4004
4009
  body