@apify/actors-mcp-server 0.9.21-beta.0 → 0.9.21-beta.1

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.
Files changed (44) hide show
  1. package/dist/const.d.ts +1 -1
  2. package/dist/const.d.ts.map +1 -1
  3. package/dist/const.js +1 -1
  4. package/dist/const.js.map +1 -1
  5. package/dist/tools/apps/call_actor.js +2 -2
  6. package/dist/tools/apps/call_actor.js.map +1 -1
  7. package/dist/tools/apps/fetch_actor_details_widget.d.ts +3 -0
  8. package/dist/tools/apps/fetch_actor_details_widget.d.ts.map +1 -0
  9. package/dist/tools/apps/fetch_actor_details_widget.js +91 -0
  10. package/dist/tools/apps/fetch_actor_details_widget.js.map +1 -0
  11. package/dist/tools/apps/search_actors.d.ts.map +1 -1
  12. package/dist/tools/apps/search_actors.js +11 -10
  13. package/dist/tools/apps/search_actors.js.map +1 -1
  14. package/dist/tools/categories.d.ts +2 -2
  15. package/dist/tools/categories.d.ts.map +1 -1
  16. package/dist/tools/categories.js +3 -4
  17. package/dist/tools/categories.js.map +1 -1
  18. package/dist/tools/core/call_actor_common.d.ts +2 -2
  19. package/dist/tools/core/call_actor_common.d.ts.map +1 -1
  20. package/dist/tools/core/fetch_actor_details_common.d.ts +9 -7
  21. package/dist/tools/core/fetch_actor_details_common.d.ts.map +1 -1
  22. package/dist/tools/core/fetch_actor_details_common.js +10 -13
  23. package/dist/tools/core/fetch_actor_details_common.js.map +1 -1
  24. package/dist/tools/default/fetch_actor_details.d.ts.map +1 -1
  25. package/dist/tools/default/fetch_actor_details.js +1 -2
  26. package/dist/tools/default/fetch_actor_details.js.map +1 -1
  27. package/dist/tools/structured_output_schemas.d.ts +32 -0
  28. package/dist/tools/structured_output_schemas.d.ts.map +1 -1
  29. package/dist/tools/structured_output_schemas.js +23 -3
  30. package/dist/tools/structured_output_schemas.js.map +1 -1
  31. package/dist/tsconfig.tsbuildinfo +1 -1
  32. package/dist/utils/server-instructions/index.d.ts +5 -5
  33. package/dist/utils/server-instructions/index.d.ts.map +1 -1
  34. package/dist/utils/server-instructions/index.js +10 -7
  35. package/dist/utils/server-instructions/index.js.map +1 -1
  36. package/package.json +1 -1
  37. package/dist/tools/apps/fetch_actor_details.d.ts +0 -7
  38. package/dist/tools/apps/fetch_actor_details.d.ts.map +0 -1
  39. package/dist/tools/apps/fetch_actor_details.js +0 -55
  40. package/dist/tools/apps/fetch_actor_details.js.map +0 -1
  41. package/dist/tools/apps/fetch_actor_details_internal.d.ts +0 -3
  42. package/dist/tools/apps/fetch_actor_details_internal.d.ts.map +0 -1
  43. package/dist/tools/apps/fetch_actor_details_internal.js +0 -36
  44. package/dist/tools/apps/fetch_actor_details_internal.js.map +0 -1
@@ -3,13 +3,13 @@
3
3
  *
4
4
  * Apps-only sections (widget workflow, widget tool disambiguation) are included
5
5
  * only when the resolved server mode is `'apps'`. Default-mode clients never
6
- * see tool names like `search-actors-internal` or `fetch-actor-details-internal`,
6
+ * see tool names like `search-actors-internal` or `fetch-actor-details-widget`,
7
7
  * avoiding hallucinated calls to tools absent from `tools/list`.
8
8
  *
9
- * Note: the `-widget` suffix split (separating widget-backed tools from silent
10
- * variants by name) is planned in follow-up PRs. Until then, widget rendering
11
- * happens on the base tool names (`call-actor`, `search-actors`,
12
- * `fetch-actor-details`) in apps mode.
9
+ * Note: the `-widget` suffix split is rolling out per-tool.
10
+ * `fetch-actor-details-widget` is the first split; `call-actor`, `search-actors`,
11
+ * and `get-actor-run` still render widgets on their base names until their own
12
+ * splits land.
13
13
  */
14
14
  import { ServerMode } from '../../types.js';
15
15
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/server-instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,GAAE,UAA+B,GAAG,MAAM,CA0DnF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/server-instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,GAAE,UAA+B,GAAG,MAAM,CA6DnF"}
@@ -3,13 +3,13 @@
3
3
  *
4
4
  * Apps-only sections (widget workflow, widget tool disambiguation) are included
5
5
  * only when the resolved server mode is `'apps'`. Default-mode clients never
6
- * see tool names like `search-actors-internal` or `fetch-actor-details-internal`,
6
+ * see tool names like `search-actors-internal` or `fetch-actor-details-widget`,
7
7
  * avoiding hallucinated calls to tools absent from `tools/list`.
8
8
  *
9
- * Note: the `-widget` suffix split (separating widget-backed tools from silent
10
- * variants by name) is planned in follow-up PRs. Until then, widget rendering
11
- * happens on the base tool names (`call-actor`, `search-actors`,
12
- * `fetch-actor-details`) in apps mode.
9
+ * Note: the `-widget` suffix split is rolling out per-tool.
10
+ * `fetch-actor-details-widget` is the first split; `call-actor`, `search-actors`,
11
+ * and `get-actor-run` still render widgets on their base names until their own
12
+ * splits land.
13
13
  */
14
14
  import { HelperTools, RAG_WEB_BROWSER } from '../../const.js';
15
15
  import { ServerMode } from '../../types.js';
@@ -52,7 +52,7 @@ Some clients render widget-backed Actor tools: the response includes a live UI t
52
52
 
53
53
  - **Never call \`${HelperTools.ACTOR_RUNS_GET}\` after a widget-backed \`${HelperTools.ACTOR_CALL}\` response.** The widget renders live progress and polls itself — stop after the widget response and defer to it for run status.
54
54
  - When \`${HelperTools.ACTOR_CALL}\` runs without a widget (the tool response is plain text / structured data only), polling \`${HelperTools.ACTOR_RUNS_GET}\` for status is expected.
55
- - Follow-up PRs will split widget-backed tools into a dedicated \`-widget\`-suffixed namespace; until then, widget rendering happens on the base tool names when the client supports it.
55
+ - The \`-widget\` suffix split is rolling out per-tool (\`${HelperTools.ACTOR_GET_DETAILS_WIDGET}\` already split); until the rest split, widget rendering happens on the base \`${HelperTools.ACTOR_CALL}\`, \`${HelperTools.STORE_SEARCH}\`, and \`${HelperTools.ACTOR_RUNS_GET}\` tool names when the client supports it.
56
56
  ` : ''}
57
57
  ## Tool dependencies and disambiguation
58
58
 
@@ -70,7 +70,10 @@ Some clients render widget-backed Actor tools: the response includes a live UI t
70
70
  Use \`${HelperTools.ACTOR_OUTPUT_GET}\` for Actor run outputs and \`${HelperTools.DATASET_GET_ITEMS}\` for direct dataset access.
71
71
  - **\`${HelperTools.STORE_SEARCH}\` vs \`${HelperTools.ACTOR_GET_DETAILS}\`:**
72
72
  \`${HelperTools.STORE_SEARCH}\` finds Actors; \`${HelperTools.ACTOR_GET_DETAILS}\` retrieves detailed info, README, and schema for a specific Actor.
73
- ${isApps ? `- **Widget-backed variants (when the client supports them):** Some \`${HelperTools.STORE_SEARCH}\` / \`${HelperTools.ACTOR_GET_DETAILS}\` responses render an interactive widget for the user. Prefer the widget-backed variant when the user explicitly asks to *see*, *browse*, or *view* something; when the next step is to actually run an Actor or perform a programmatic flow, prefer a silent lookup if such a variant is available (for example, \`${HelperTools.STORE_SEARCH_INTERNAL}\` or \`${HelperTools.ACTOR_GET_DETAILS_INTERNAL}\`), otherwise use the standard lookup tools. A \`-widget\` suffix split is planned in a follow-up PR; until then, widget rendering is selected by the server based on client capabilities.
73
+ ${isApps ? `- **Data vs widget Actor tools (when the client supports widgets):**
74
+ - \`${HelperTools.STORE_SEARCH_INTERNAL}\` is for silent name resolution; \`${HelperTools.STORE_SEARCH}\` renders an interactive UI element (widget) for user-facing discovery.
75
+ - \`${HelperTools.ACTOR_GET_DETAILS}\` is a silent data lookup (input schema, README, metadata) with no UI; \`${HelperTools.ACTOR_GET_DETAILS_WIDGET}\` renders an interactive UI element (widget) with Actor details — use it only when the user explicitly asks to see or browse the Actor.
76
+ - When the next step is running an Actor, prefer silent lookups (\`${HelperTools.STORE_SEARCH_INTERNAL}\`, \`${HelperTools.ACTOR_GET_DETAILS}\`) over widget-backed variants.
74
77
  ` : ''}- **\`${HelperTools.STORE_SEARCH}\` vs ${RAG_WEB_BROWSER}:**
75
78
  \`${HelperTools.STORE_SEARCH}\` finds robust and reliable Actors for specific websites; ${RAG_WEB_BROWSER} is a general and versatile web scraping tool.
76
79
  - **Dedicated Actor tools (e.g. ${RAG_WEB_BROWSER}) vs \`${HelperTools.ACTOR_CALL}\`:**
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/server-instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAAmB,UAAU,CAAC,OAAO;IACvE,MAAM,MAAM,GAAG,IAAI,KAAK,UAAU,CAAC,IAAI,CAAC;IAExC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;EAyBT,MAAM,CAAC,CAAC,CAAC;;;;mBAIQ,WAAW,CAAC,cAAc,8BAA8B,WAAW,CAAC,UAAU;WACtF,WAAW,CAAC,UAAU,gGAAgG,WAAW,CAAC,cAAc;;CAE1J,CAAC,CAAC,CAAC,EAAE;;;;MAIA,WAAW,CAAC,UAAU;YAChB,WAAW,CAAC,iBAAiB;;;;;;;;QAQjC,WAAW,CAAC,gBAAgB,WAAW,WAAW,CAAC,iBAAiB;UAClE,WAAW,CAAC,gBAAgB,kCAAkC,WAAW,CAAC,iBAAiB;QAC7F,WAAW,CAAC,YAAY,WAAW,WAAW,CAAC,iBAAiB;MAClE,WAAW,CAAC,YAAY,sBAAsB,WAAW,CAAC,iBAAiB;EAC/E,MAAM,CAAC,CAAC,CAAC,wEAAwE,WAAW,CAAC,YAAY,UAAU,WAAW,CAAC,iBAAiB,wTAAwT,WAAW,CAAC,qBAAqB,WAAW,WAAW,CAAC,0BAA0B;CAC3hB,CAAC,CAAC,CAAC,EAAE,SAAS,WAAW,CAAC,YAAY,SAAS,eAAe;MACzD,WAAW,CAAC,YAAY,8DAA8D,eAAe;kCACzE,eAAe,UAAU,WAAW,CAAC,UAAU;iDAChC,WAAW,CAAC,UAAU;CACtE,CAAC;AACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/server-instructions/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE5C;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAC,OAAmB,UAAU,CAAC,OAAO;IACvE,MAAM,MAAM,GAAG,IAAI,KAAK,UAAU,CAAC,IAAI,CAAC;IAExC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;EAyBT,MAAM,CAAC,CAAC,CAAC;;;;mBAIQ,WAAW,CAAC,cAAc,8BAA8B,WAAW,CAAC,UAAU;WACtF,WAAW,CAAC,UAAU,gGAAgG,WAAW,CAAC,cAAc;4DAC/F,WAAW,CAAC,wBAAwB,mFAAmF,WAAW,CAAC,UAAU,SAAS,WAAW,CAAC,YAAY,aAAa,WAAW,CAAC,cAAc;CAChR,CAAC,CAAC,CAAC,EAAE;;;;MAIA,WAAW,CAAC,UAAU;YAChB,WAAW,CAAC,iBAAiB;;;;;;;;QAQjC,WAAW,CAAC,gBAAgB,WAAW,WAAW,CAAC,iBAAiB;UAClE,WAAW,CAAC,gBAAgB,kCAAkC,WAAW,CAAC,iBAAiB;QAC7F,WAAW,CAAC,YAAY,WAAW,WAAW,CAAC,iBAAiB;MAClE,WAAW,CAAC,YAAY,sBAAsB,WAAW,CAAC,iBAAiB;EAC/E,MAAM,CAAC,CAAC,CAAC;QACH,WAAW,CAAC,qBAAqB,uCAAuC,WAAW,CAAC,YAAY;QAChG,WAAW,CAAC,iBAAiB,6EAA6E,WAAW,CAAC,wBAAwB;uEAC/E,WAAW,CAAC,qBAAqB,SAAS,WAAW,CAAC,iBAAiB;CAC7I,CAAC,CAAC,CAAC,EAAE,SAAS,WAAW,CAAC,YAAY,SAAS,eAAe;MACzD,WAAW,CAAC,YAAY,8DAA8D,eAAe;kCACzE,eAAe,UAAU,WAAW,CAAC,UAAU;iDAChC,WAAW,CAAC,UAAU;CACtE,CAAC;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apify/actors-mcp-server",
3
- "version": "0.9.21-beta.0",
3
+ "version": "0.9.21-beta.1",
4
4
  "type": "module",
5
5
  "description": "Apify MCP Server",
6
6
  "mcpName": "com.apify/apify-mcp-server",
@@ -1,7 +0,0 @@
1
- import type { ToolEntry } from '../../types.js';
2
- /**
3
- * Apps mode fetch-actor-details tool.
4
- * Returns simplified structured content with interactive widget metadata.
5
- */
6
- export declare const appsFetchActorDetails: ToolEntry;
7
- //# sourceMappingURL=fetch_actor_details.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch_actor_details.d.ts","sourceRoot":"","sources":["../../../src/tools/apps/fetch_actor_details.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAoB,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAgBlE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,SA6CzB,CAAC"}
@@ -1,55 +0,0 @@
1
- import dedent from 'dedent';
2
- import { ApifyClient } from '../../apify_client.js';
3
- import { getWidgetConfig, WIDGET_URIS } from '../../resources/widgets.js';
4
- import { buildActorDetailsForWidget, buildCardOptions, fetchActorDetails, } from '../../utils/actor_details.js';
5
- import { buildMCPResponse } from '../../utils/mcp.js';
6
- import { getUserInfoCached } from '../../utils/userid_cache.js';
7
- import { fixActorNameInputAndLog } from '../core/actor_tools_factory.js';
8
- import { buildActorNotFoundResponse, fetchActorDetailsMetadata, fetchActorDetailsToolArgsSchema, resolveOutputOptions, } from '../core/fetch_actor_details_common.js';
9
- /**
10
- * Apps mode fetch-actor-details tool.
11
- * Returns simplified structured content with interactive widget metadata.
12
- */
13
- export const appsFetchActorDetails = Object.freeze({
14
- ...fetchActorDetailsMetadata,
15
- call: async (toolArgs) => {
16
- const { args, apifyToken, mcpSessionId } = toolArgs;
17
- const parsed = fetchActorDetailsToolArgsSchema.parse(args);
18
- const actorName = fixActorNameInputAndLog(parsed.actor, { mcpSessionId, route: 'fetch-actor-details' });
19
- const apifyClient = new ApifyClient({ token: apifyToken });
20
- const { userPlanTier } = await getUserInfoCached(apifyToken, apifyClient);
21
- const cardOptions = { ...buildCardOptions(resolveOutputOptions(parsed.output)), userTier: userPlanTier };
22
- const details = await fetchActorDetails(apifyClient, actorName, cardOptions);
23
- if (!details) {
24
- return buildActorNotFoundResponse(actorName);
25
- }
26
- const { actorUrl, actorDetails } = buildActorDetailsForWidget(details, userPlanTier);
27
- // Pricing is already carried by `actorDetails.actorInfo.currentPricingInfo` (widget-facing,
28
- // tier-aware simplified). Omit the complete-mode `pricing` field from the top-level
29
- // `actorInfo` to avoid two conflicting pricing shapes in the same response.
30
- const { pricing: _pricing, ...actorInfoWithoutPricing } = details.actorCardStructured;
31
- const structuredContent = {
32
- actorInfo: actorInfoWithoutPricing,
33
- inputSchema: details.inputSchema,
34
- actorDetails,
35
- };
36
- const texts = [dedent `
37
- # Actor information:
38
- - **Actor:** ${actorName}
39
- - **URL:** ${actorUrl}
40
-
41
- An interactive widget has been rendered with detailed Actor information.
42
- `];
43
- const widgetConfig = getWidgetConfig(WIDGET_URIS.SEARCH_ACTORS);
44
- return buildMCPResponse({
45
- texts,
46
- structuredContent,
47
- // Response-level meta; only returned in apps mode (this handler is apps-only)
48
- _meta: {
49
- ...widgetConfig === null || widgetConfig === void 0 ? void 0 : widgetConfig.meta,
50
- 'openai/widgetDescription': `Actor details for ${actorName} from Apify Store`,
51
- },
52
- });
53
- },
54
- });
55
- //# sourceMappingURL=fetch_actor_details.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch_actor_details.js","sourceRoot":"","sources":["../../../src/tools/apps/fetch_actor_details.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE1E,OAAO,EACH,0BAA0B,EAC1B,gBAAgB,EAChB,iBAAiB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EACH,0BAA0B,EAC1B,yBAAyB,EACzB,+BAA+B,EAC/B,oBAAoB,GACvB,MAAM,uCAAuC,CAAC;AAE/C;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAc,MAAM,CAAC,MAAM,CAAC;IAC1D,GAAG,yBAAyB;IAC5B,IAAI,EAAE,KAAK,EAAE,QAA0B,EAAE,EAAE;QACvC,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC;QACpD,MAAM,MAAM,GAAG,+BAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC3D,MAAM,SAAS,GAAG,uBAAuB,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,qBAAqB,EAAE,CAAC,CAAC;QACxG,MAAM,WAAW,GAAG,IAAI,WAAW,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC;QAE3D,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,iBAAiB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QAC1E,MAAM,WAAW,GAAG,EAAE,GAAG,gBAAgB,CAAC,oBAAoB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,CAAC;QACzG,MAAM,OAAO,GAAG,MAAM,iBAAiB,CAAC,WAAW,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;QAC7E,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,OAAO,0BAA0B,CAAC,SAAS,CAAC,CAAC;QACjD,CAAC;QAED,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,0BAA0B,CAAC,OAAO,EAAE,YAAY,CAAC,CAAC;QACrF,4FAA4F;QAC5F,oFAAoF;QACpF,4EAA4E;QAC5E,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,uBAAuB,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC;QACtF,MAAM,iBAAiB,GAAG;YACtB,SAAS,EAAE,uBAAuB;YAClC,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,YAAY;SACf,CAAC;QAEF,MAAM,KAAK,GAAG,CAAC,MAAM,CAAA;;2BAEF,SAAS;yBACX,QAAQ;;;SAGxB,CAAC,CAAC;QAEH,MAAM,YAAY,GAAG,eAAe,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;QAChE,OAAO,gBAAgB,CAAC;YACpB,KAAK;YACL,iBAAiB;YACjB,8EAA8E;YAC9E,KAAK,EAAE;gBACH,GAAG,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,IAAI;gBACrB,0BAA0B,EAAE,qBAAqB,SAAS,mBAAmB;aAChF;SACJ,CAAC,CAAC;IACP,CAAC;CACK,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { ToolEntry } from '../../types.js';
2
- export declare const fetchActorDetailsInternalTool: ToolEntry;
3
- //# sourceMappingURL=fetch_actor_details_internal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch_actor_details_internal.d.ts","sourceRoot":"","sources":["../../../src/tools/apps/fetch_actor_details_internal.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAmB,MAAM,gBAAgB,CAAC;AAQjE,eAAO,MAAM,6BAA6B,EAAE,SA4BjC,CAAC"}
@@ -1,36 +0,0 @@
1
- import dedent from 'dedent';
2
- import { z } from 'zod';
3
- import { HelperTools } from '../../const.js';
4
- import { compileSchema } from '../../utils/ajv.js';
5
- import { buildFetchActorDetailsResult, fetchActorDetailsToolArgsSchema, } from '../core/fetch_actor_details_common.js';
6
- import { actorDetailsOutputSchema } from '../structured_output_schemas.js';
7
- export const fetchActorDetailsInternalTool = Object.freeze({
8
- type: 'internal',
9
- name: HelperTools.ACTOR_GET_DETAILS_INTERNAL,
10
- description: dedent `
11
- Fetch Actor details with flexible output options (apps mode internal tool).
12
-
13
- This tool is available because the LLM is operating in apps mode. Use it for internal lookups
14
- where data presentation to the user is NOT needed - this tool does NOT render a widget.
15
-
16
- Use 'output' parameter with boolean flags to control returned information:
17
- - Default: Fields: description, stats, pricing, rating, metadata, inputSchema, readme - except mcpTools
18
- - Selective: Set desired fields to true to save tokens (e.g., output: { inputSchema: true, readme: false })
19
- - Common patterns: inputSchema only for execution prep, readme + inputSchema for documentation, etc.
20
-
21
- Use this instead of fetch-actor-details when you need Actor information to prepare execution
22
- but the user did NOT explicitly ask for Actor details presentation.
23
- `,
24
- inputSchema: z.toJSONSchema(fetchActorDetailsToolArgsSchema),
25
- outputSchema: actorDetailsOutputSchema,
26
- ajvValidate: compileSchema(z.toJSONSchema(fetchActorDetailsToolArgsSchema)),
27
- annotations: {
28
- title: 'Fetch Actor details internal',
29
- readOnlyHint: true,
30
- destructiveHint: false,
31
- idempotentHint: true,
32
- openWorldHint: false,
33
- },
34
- call: async (toolArgs) => buildFetchActorDetailsResult(toolArgs, HelperTools.ACTOR_GET_DETAILS_INTERNAL),
35
- });
36
- //# sourceMappingURL=fetch_actor_details_internal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetch_actor_details_internal.js","sourceRoot":"","sources":["../../../src/tools/apps/fetch_actor_details_internal.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EACH,4BAA4B,EAC5B,+BAA+B,GAClC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,MAAM,CAAC,MAAM,6BAA6B,GAAc,MAAM,CAAC,MAAM,CAAC;IAClE,IAAI,EAAE,UAAU;IAChB,IAAI,EAAE,WAAW,CAAC,0BAA0B;IAC5C,WAAW,EAAE,MAAM,CAAA;;;;;;;;;;;;;KAalB;IACD,WAAW,EAAE,CAAC,CAAC,YAAY,CAAC,+BAA+B,CAAoB;IAC/E,YAAY,EAAE,wBAAwB;IACtC,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC,YAAY,CAAC,+BAA+B,CAAC,CAAC;IAC3E,WAAW,EAAE;QACT,KAAK,EAAE,8BAA8B;QACrC,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACvB;IACD,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,CAAC,4BAA4B,CAAC,QAAQ,EAAE,WAAW,CAAC,0BAA0B,CAAC;CAClG,CAAC,CAAC"}