Skip to content

Who owns the validation layer? #92

@MiguelsPizza

Description

@MiguelsPizza

Currently, inputSchema is purely a semantic hint for the agent. If the agent calls the tool incorrectly, it is up to the tool creators to validate and provide feedback to the caller. From my experience, this feedback is really important for SLM's (prompt API) that often miss-call tools on the first attempt and rely on the validation error feedback to self correct.

Considering that this is something every tool creator is going to have to maintain individually, it would be nice if the browser instead did the validation and returned validation errors in a structured way (prior art)

Related security work that could benefit from browser owned validation: #45, #73 and #9

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