place.hud.previewView
Draw a view given inline, as list_records, get_record or query draw one: checked first, its problems answered and nothing read when it has any; else, given no answer, the call made afresh, its result answered; given the answer that call read before (its structuredContent), drawn again over it, nothing read again but what the tool reads to draw (handles, lexicons, linked posts). An inline view is untrusted, as anywhere. No auth required: signed in (the workspace's web session, its cookie with X-HUD: 1 and the server's own Origin, or a HUD access token as Bearer), the call is made as the account; else as no one.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | hud.place |
| Commit rev | 3n3jbjeiamgju |
| Indexed |
Procedure
procedure · POSTInput
application/jsonanswer
unknownWhat the same call answered before as its structuredContent, read with a view whose joins and query are this one's: drawn again with this view, not read again.
The tool's arguments, an object, the view in it as view.
The tool that draws the view.
maxLength: 64knownValues: list_records | get_record | query
Output
application/jsonproblems
arrayWhy the view is not valid, every problem, in the order found: then nothing is read or drawn.
result
unknownThe call's MCP CallToolResult, read afresh: content, structuredContent, isError and _meta. A tool's error is its result's, isError true.
ui
refThe view drawn over the answer given, as the tool's _meta.ui.
Errors
InvalidRequest
A tool that draws no view, arguments that are not an object or name no view, an answer that is not of that call, or input not what the method takes.
#problem
objectOne problem of a view.