-
Notifications
You must be signed in to change notification settings - Fork 56
Description
Objective
Evaluate and triage issue #138 "get_screen returns incomplete screen data — missing theme, designMd, screenMetadata" as an architectural capability gap requiring coordination with the upstream API team.
Code-Level Diagnosis
Code path: packages/sdk/generated/tools-manifest.json and packages/sdk/generated/src/tool-definitions.ts
Mechanism: The SDK automatically parses the upstream Stitch API schema to generate tool wrappers. The issue indicates get_screen returns fewer fields than generate_screen_from_text.
Root cause: A review of the tools-manifest.json schema confirms that the get_screen tool's output schema does not include theme, designMd, screenMetadata, prompt, generatedBy, screenType, or designSystem. These fields are simply not part of the get_screen endpoint's API schema on the backend. This cannot be fixed by changes to the SDK because the SDK merely passes through the backend's response payload based on the schema.
Current Implementation
// In tools-manifest.json for 'get_screen':
"Screen": {
"description": "A screen generated by the agent.",
"properties": {
"deviceType": { ... },
"height": { ... },
"htmlCode": { ... },
"name": { ... },
"screenshot": { ... },
"title": { ... },
"width": { ... }
},
"type": "object"
}
// Notice the absence of 'theme', 'screenMetadata', etc.Proposed Implementation
Files to modify: None in the SDK repo at this time.
Integration (Before -> After)
// No changes required until the upstream schema is updated.Test Scenarios
- N/A
Target Files
- N/A
Boundary Rules
No boundary rules apply; this is an informational signal and requires no code changes.
Findings
- Issue Reference: get_screen returns incomplete screen data — missing theme, designMd, screenMetadata #138
- Goal Directives: The initial directive requires focusing on actionability.
- Current State: The requested missing fields are not included in the upstream
get_screenschema. Providing them via the SDK requires upstream changes to the Stitch API and MCP server.
Action Items
- This issue is structurally an Insight.
- Reason Skipped for Assessment: The requested output fields are not available in the upstream API schema. Implementing this fix requires backend support before the SDK can generate the appropriate wrappers that include these fields.
- Suggested Owner: Upstream API/Backend Team.
- Conclusion: No further code modifications are required for issue get_screen returns incomplete screen data — missing theme, designMd, screenMetadata #138 within the SDK repository at this time. Wait for upstream schema updates.
Fleet Context
- Source:
jules:session:289001775965171631 - Link: https://jules.google.com/session/289001775965171631