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.

Repository @lexicons.hud.place did:plc:3tzbz4pml36u4mkresb6pdhv not from the namespace authority
Details · procedure
Kindprocedure
Authorityhud.place
Commit rev3n3jbjeiamgju
Indexed

Procedure

procedure · POST

Input

application/json

answer

unknown

What 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.

arguments

requiredunknown

The tool's arguments, an object, the view in it as view.

tool

requiredstring

The tool that draws the view.

  • maxLength: 64
  • knownValues: list_records | get_record | query

Output

application/json

Why the view is not valid, every problem, in the order found: then nothing is read or drawn.

itemsref
Reference

result

unknown

The call's MCP CallToolResult, read afresh: content, structuredContent, isError and _meta. A tool's error is its result's, isError true.

ui

ref

The view drawn over the answer given, as the tool's _meta.ui.

Reference

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

object

One problem of a view.

Properties

at

requiredstring

Where in the view, as a path of keys and [indexes], as list.layout.children[0].props.gap; view for the whole.

  • maxLength: 1024

message

requiredstring

What is wrong there.

  • maxLength: 2048