feat: add outputSchema option to fetch-actor-details tools#413
Merged
Conversation
- Add outputSchema boolean option to actorDetailsOutputOptionsSchema - Pass actorOutputSchema through meta from internal server - Add typeObjectToString utility for human-readable type display - Include outputSchema in structured response content - Update fetch-actor-details and fetch-actor-details-internal tools
Contributor
Author
|
Linked PR: apify/apify-mcp-server-internal#295 This feature is coordinated with the internal server implementation. The internal PR should be merged only after this PR is merged and released. |
commit: |
…a type ## Summary - Add optional `previewOutput` parameter (default: true) to call-actor tool for controlling dataset preview in responses - Fix `outputSchema` field type in actorDetailsOutputSchema from string to object - Reduce context clutter when users plan to fetch specific fields via get-actor-output tool ## Technical Changes - Add `previewOutput` boolean parameter to callActorArgs Zod schema with contextual description - Pass `previewOutput` through callActorGetDataset to conditionally skip preview items extraction - Update buildActorResponseContent to handle both preview modes with appropriate messaging - Change actorDetailsOutputSchema.outputSchema type from 'string' to 'object' to match actual data - Add 2 integration tests for previewOutput feature (true and false modes) ## Backward Compatibility - previewOutput defaults to true, maintaining existing behavior - No breaking changes to public API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements complete actor output schema support: adds outputSchema boolean option to fetch-actor-details tools, enables output schema inference, and adds previewOutput control to call-actor for context management. The schema is passed through meta from the internal server and included in structured responses.
Technical Changes
Backward Compatibility