|
| 1 | +import dedent from 'dedent'; |
1 | 2 | import { z } from 'zod'; |
2 | 3 |
|
3 | 4 | import { createApifyClientWithSkyfireSupport } from '../../apify_client.js'; |
@@ -67,23 +68,24 @@ export function cleanEmptyProperties(obj: unknown): unknown { |
67 | 68 | export const getActorOutput: ToolEntry = Object.freeze({ |
68 | 69 | type: 'internal', |
69 | 70 | name: HelperTools.ACTOR_OUTPUT_GET, |
70 | | - description: `Retrieve the output dataset items of a specific Actor run using its datasetId. |
71 | | -You can select specific fields to return (supports dot notation like "crawl.statusCode") and paginate results with offset and limit. |
72 | | -This tool is a simplified version of the get-dataset-items tool, focused on Actor run outputs. |
| 71 | + description: dedent` |
| 72 | + Retrieve the output dataset items of a specific Actor run using its datasetId. |
| 73 | + You can select specific fields to return (supports dot notation like "crawl.statusCode") and paginate results with offset and limit. |
| 74 | + This tool is a simplified version of the get-dataset-items tool, focused on Actor run outputs. |
73 | 75 |
|
74 | | -The results will include the dataset items from the specified dataset. If you provide fields, only those fields will be included (nested fields supported via dot notation). |
| 76 | + The results will include the dataset items from the specified dataset. If you provide fields, only those fields will be included (nested fields supported via dot notation). |
75 | 77 |
|
76 | | -You can obtain the datasetId from an Actor run (e.g., after calling an Actor with the call-actor tool) or from the Apify Console (Runs → Run details → Dataset ID). |
| 78 | + You can obtain the datasetId from an Actor run (e.g., after calling an Actor with the call-actor tool) or from the Apify Console (Runs → Run details → Dataset ID). |
77 | 79 |
|
78 | | -USAGE: |
79 | | -- Use when you need to read Actor output data (full items or selected fields), especially when preview does not include all fields. |
| 80 | + USAGE: |
| 81 | + - Use when you need to read Actor output data (full items or selected fields), especially when preview does not include all fields. |
80 | 82 |
|
81 | | -USAGE EXAMPLES: |
82 | | -- user_input: Get data of my last Actor run |
83 | | -- user_input: Get number_of_likes from my dataset |
84 | | -- user_input: Return only crawl.statusCode and url from dataset aab123 |
| 83 | + USAGE EXAMPLES: |
| 84 | + - user_input: Get data of my last Actor run |
| 85 | + - user_input: Get number_of_likes from my dataset |
| 86 | + - user_input: Return only crawl.statusCode and url from dataset aab123 |
85 | 87 |
|
86 | | -Note: This tool is automatically included if the Apify MCP Server is configured with any Actor tools (e.g., "apify-slash-rag-web-browser") or tools that can interact with Actors (e.g., "call-actor", "add-actor").`, |
| 88 | + Note: This tool is automatically included if the Apify MCP Server is configured with any Actor tools (e.g., "apify-slash-rag-web-browser") or tools that can interact with Actors (e.g., "call-actor", "add-actor").`, |
87 | 89 | inputSchema: z.toJSONSchema(getActorOutputArgs) as ToolInputSchema, |
88 | 90 | outputSchema: datasetItemsOutputSchema, |
89 | 91 | /** |
|
0 commit comments