You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SM-IS-01 maxLength exemption missing from body/content fields across most tools — follow-up to #43867 #44842
#43867 fixed create_discussion.body and create_issue.body by adding maxLength: 65536, exempting them from the SM-IS-01 global 10 KB cap. However, the same gap exists across almost every other body (and equivalent large-content) field in the tool set. The fix in #43867 was narrower than the underlying problem.
How the exemption works (recap)
From mcp_scripts_validation.cjs:
// Skip fields with an explicit maxLength — handler-level validation enforces their limit.if(typeofschema.maxLength==='number'){continue;}
Any string field withoutmaxLength is subject to the 10 KB global floor. Fields that should accept large content need maxLength: 65536 (or appropriate value) to delegate enforcement to the GitHub API layer.
Affected fields
These are body / large-content fields currently missing maxLength:
Add appropriate maxLength values to all affected fields in both pkg/workflow/js/safe_outputs_tools.json and actions/setup/js/safe_outputs_tools.json. For most body fields, 65536 is the right value (matching add_comment and GitHub's GraphQL API limits). Fields with tighter natural limits (e.g. commit_message, noop.message) may warrant lower values.
Alternatively, consider inverting the SM-IS-01 logic: apply the 10 KB floor only to fields that have not been explicitly sized, and treat the lack of maxLength as "defer to the API" rather than "enforce 10 KB". This would make the safe default permissive and require explicit opt-in to tighter caps — more consistent with how the rest of the schema validation works.
The most painful gaps are update_discussion and update_issue, since they mean report workflows can create reports that they are unable to update at the same level of detail (the agent resorts to compressing the body or other workarounds).
Activity
straub commentedon Jul 15, 2026
The most painful gaps are
update_discussionandupdate_issue, since they mean report workflows can create reports that they are unable to update at the same level of detail (the agent resorts to compressing the body or other workarounds).fix: add maxLength: 65536 to body/content fields to exempt from SM-IS…