Skip to content

[Fleet Insight] [Triage Evaluation: get_screen returns incomplete screen data] #140

@jules-fleet

Description

@jules-fleet

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

  1. N/A

Target Files

  • N/A

Boundary Rules

No boundary rules apply; this is an informational signal and requires no code changes.

Findings

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions