chadtmiller.com/hud
A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts
place.hud.hudkit 0.3.1 Latest 5 packages
0
0
{
"lexicon": 1,
"id": "place.hud.previewView",
"description": "Draw a view being written, for the playground.",
"defs": {
"main": {
"type": "procedure",
"description": "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.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"tool",
"arguments"
],
"properties": {
"tool": {
"type": "string",
"maxLength": 64,
"knownValues": [
"list_records",
"get_record",
"query"
],
"description": "The tool that draws the view."
},
"arguments": {
"type": "unknown",
"description": "The tool's arguments, an object, the view in it as view."
},
"answer": {
"type": "unknown",
"description": "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."
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"properties": {
"result": {
"type": "unknown",
"description": "The call's MCP CallToolResult, read afresh: content, structuredContent, isError and _meta. A tool's error is its result's, isError true."
},
"ui": {
"type": "ref",
"ref": "place.hud.ui",
"description": "The view drawn over the answer given, as the tool's _meta.ui."
},
"problems": {
"type": "array",
"items": {
"type": "ref",
"ref": "#problem"
},
"description": "Why the view is not valid, every problem, in the order found: then nothing is read or drawn."
}
}
}
},
"errors": [
{
"name": "InvalidRequest",
"description": "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": {
"type": "object",
"description": "One problem of a view.",
"required": [
"at",
"message"
],
"properties": {
"at": {
"type": "string",
"maxLength": 1024,
"description": "Where in the view, as a path of keys and [indexes], as list.layout.children[0].props.gap; view for the whole."
},
"message": {
"type": "string",
"maxLength": 2048,
"description": "What is wrong there."
}
}
}
}
}