Skip to content

Conversation

@didier-durand
Copy link
Contributor

@didier-durand didier-durand commented Dec 21, 2025

Hi,

We suggest to add "additionalProperties": false in the schema definition based on https://tour.json-schema.org/content/03-Objects/02-Additional-Properties

It allows simpler validation parsing of the A2UI items by the agent before sending them to the renderer. This property will make jsonschema.validate()raise exceptions on all properties not in the official schema. So, it will make sure that only a list of beginRendering, surfaceUpdate, dataModelUpdate and deleteSurface are sent to the renderer. It will also ensure that only properties existing in official schema are defined for those commands.

It has at least 2 positives consequences:

  • more solid / resilient renderer behavior: for dynamically generated (i.e by the LLM) A2UI templates, we can be easily sure that only valid command are sent
  • security aspects: the agent can make sure that the renderer will not be sent onto unsecure code path due to incorrect commands

If required, I can also extend this PR to add "additionalProperties": false for each of the commands so that we also avoid unknown properties at this additional level.

Cheers,
Didier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant