Fix Claude API incompatibility in update_project tool schema#10902
Merged
Fix Claude API incompatibility in update_project tool schema#10902
Conversation
…tool Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
… schema Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Analyze latest campaign run results
Fix Claude API incompatibility in update_project tool schema
Jan 20, 2026
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.
Campaign workflows failed with Claude Sonnet 4.5 due to
oneOfat the top level of theupdate_projecttool's input schema. Anthropic's API does not supportoneOf,allOf, oranyOfat the schema root.Changes
Flattened tool schema structure
oneOfdiscriminated unionprojectthe only required fieldcontent_type)operation='create_fields'+field_definitions)operation='create_view'+view)Before:
{ "inputSchema": { "type": "object", "oneOf": [ {"required": ["project", "operation", "field_definitions"]}, {"required": ["project", "operation", "view"]}, {"required": ["project", "content_type"]} ], "properties": {...} } }After:
{ "inputSchema": { "type": "object", "required": ["project"], "properties": { "operation": { "description": "Optional operation mode. Use create_fields to create required campaign fields up-front, or create_view to add a project view. When omitted, the tool adds/updates project items." }, "content_type": { "description": "Type of item to add to the project. Required when operation is not specified." } // ... other fields with clarified descriptions } } }Impact
actions/setup/js/safe_outputs_tools.jsonandpkg/workflow/js/safe_outputs_tools.jsonOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.