Skip to content

Commit 83067b1

Browse files
committed
add skyfire instructions also to the call-actor info step result content
1 parent dde4fd2 commit 83067b1

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

src/tools/actor.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -363,11 +363,19 @@ The step parameter enforces this workflow - you cannot call an Actor without fir
363363
content: [{ type: 'text', text: `Actor information for '${actorName}' was not found. Please check the Actor ID or name and ensure the Actor exists.` }],
364364
};
365365
}
366-
return {
367-
content: [
368-
{ type: 'text', text: `**Input Schema:**\n${JSON.stringify(details.inputSchema, null, 0)}` },
369-
],
370-
};
366+
const content = [
367+
{ type: 'text', text: `**Input Schema:**\n${JSON.stringify(details.inputSchema, null, 0)}` },
368+
];
369+
/**
370+
* Add Skyfire instructions also in the info step since clients are most likely truncating the long tool description of the call-actor.
371+
*/
372+
if (apifyMcpServer.options.skyfireMode) {
373+
content.push({
374+
type: 'text',
375+
text: SKYFIRE_TOOL_INSTRUCTIONS,
376+
});
377+
}
378+
return { content };
371379
}
372380

373381
/**

0 commit comments

Comments
 (0)