You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnbuildMCPResponse([`This is an MCP Server Actor with the following tools:\n\n${toolsInfo}\n\nTo call a tool, use step="call" with actor name format: "${baseActorName}:{toolName}"`]);
@@ -479,7 +479,7 @@ The step parameter enforces this workflow - you cannot call an Actor without fir
479
479
if(errors&&errors.length>0){
480
480
returnbuildMCPResponse([
481
481
`Input validation failed for Actor '${actorName}': ${errors.map((e)=>e.message).join(', ')}`,
* Builds the response content for Actor tool calls.
@@ -38,16 +38,17 @@ Results summary:
38
38
39
39
Actor output data schema:
40
40
* You can use this schema to understand the structure of the output data and, for example, retrieve specific fields based on your current task.
41
-
42
-
${jsonSchemaToMarkdown(displaySchema)}
41
+
\`\`\`json
42
+
${JSON.stringify(displaySchema,null,2)}
43
+
\`\`\`
43
44
44
45
Above this text block is a preview of the Actor output containing ${result.previewItems.length} item(s).${itemCount!==result.previewItems.length ? ` You have access only to a limited preview of the Actor output. Do not present this as the full output, as you have only ${result.previewItems.length} item(s) available instead of the full ${itemCount} item(s). Be aware of this and inform users about the currently loaded count and the total available output items count.` : ''}
45
46
46
47
If you need to retrieve additional data, use the "get-actor-output" tool with: datasetId: "${datasetId}". Be sure to limit the number of results when using the "get-actor-output" tool, since you never know how large the items may be, and they might exceed the output limits.
: `No items available for preview—either the Actor did not return any items or they are too large for preview. In this case, use the "get-actor-output" tool.`;
0 commit comments