~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/hud

A remote MCP server that shows atproto records as interactive UI inside MCP Apps hosts

0
0
260 lines · 23.0 KB Raw History
{
	"$type": "place.hud.view",
	"method": "app.bsky.feed.getPostThread",
	"app": "Bluesky",
	"service": "did:web:api.bsky.app#bsky_appview",
	"description": "A Bluesky post's thread: the posts it replies to, and its replies",
	"records": [
		{
			"collection": "app.bsky.feed.post",
			"params": { "uri": { "$": "uri" } },
			"activity": { "verb": "Posted", "noun": ["post", "posts"], "label": { "$": "value.text" } }
		},
		{ "collection": "app.bsky.feed.repost", "params": { "uri": { "$": "value.subject.uri" } } }
	],
	"origins": ["https://cdn.bsky.app", "https://video.bsky.app", "https://video.cdn.bsky.app"],
	"thumbnails": [{ "from": "https://cdn.bsky.app/img/avatar/plain/", "to": "https://cdn.bsky.app/img/avatar_thumbnail/plain/" }],
	"query": {
		"summary": {
			"noun": ["thread", "threads"],
			"label": { "$": "response.thread.post.record.text" },
			"by": { "$": "response.thread.post.author.handle" },
			"detail": { "count": { "$": "response.thread.replies" }, "noun": ["reply", "replies"], "children": "replies" }
		},
		"layout": {
			"component": "Stack",
			"props": { "gap": "md" },
			"children": [
				{
					"component": "Chain",
					"props": {
						"from": { "$": "response.thread.parent" },
						"next": "parent",
						"depth": 10,
						"line": "face",
						"open": { "query": "app.bsky.feed.getPostThread", "params": { "uri": { "$": "post.uri" } } }
					},
					"children": [
						{
							"component": "Row",
							"props": { "gap": "sm", "align": "start" },
							"children": [
								{ "component": "Image", "props": { "src": { "$": "post.author.avatar" }, "alt": { "$": "post.author.handle" }, "size": "face" } },
								{
									"component": "Stack",
									"props": { "gap": "sm" },
									"children": [
										{
											"component": "Row",
											"props": { "gap": "xs", "align": "center", "wrap": "cut" },
											"children": [
												{
													"component": "Link",
													"props": { "href": { "$": "post.author.did" }, "label": { "$": ["post.author.displayName", "post.author.handle"] } }
												},
												{ "component": "Text", "props": { "value": { "$": "post.author.handle" }, "style": "muted", "prefix": "@" } },
												{ "component": "Text", "props": { "value": "·", "style": "muted" } },
												{ "component": "Time", "props": { "value": { "$": "post.record.createdAt" } } }
											]
										},
										{ "component": "RichText", "props": { "value": { "$": "post.record.text" }, "format": "facets", "facets": { "$": "post.record.facets" } } },
										{ "component": "Embed", "props": { "value": { "$": "post.embed" }, "did": { "$": "post.author.did" }, "uri": { "$": "post.uri" } } },
										{
											"component": "Row",
											"props": { "gap": "lg", "align": "center" },
											"children": [
												{"component": "Compose", "props": {"label": "Reply", "icon": "reply", "count": {"$": "post.replyCount"}, "closed": {"$": "post.viewer.replyDisabled"}, "title": {"$": ["post.author.displayName", "post.author.handle"]}, "about": {"$": "post.record.text"}, "send": "Reply", "given": {"root": {"$first": [{"$": "post.record.reply.root"}, {"$strongRef": "post"}]}, "parent": {"$strongRef": "post"}}, "fields": [{"name": "text", "kind": "text", "placeholder": "Write your reply", "max": 300, "facets": true, "suggest": {"method": "app.bsky.actor.searchActorsTypeahead", "service": "did:web:api.bsky.app#bsky_appview", "param": "q", "params": {"limit": 8}, "items": "actors", "did": "did", "handle": "handle", "name": "displayName", "avatar": "avatar"}, "required": true}, {"name": "photos", "kind": "photos", "label": "Images", "min": 0, "max": 4, "alt": true, "maxBytes": 1000000, "maxSide": 2000}, {"name": "card", "kind": "card", "from": "text"}, {"name": "langs", "kind": "langs", "label": "Language", "max": 3}, {"name": "labels", "kind": "labels", "label": "Content warning", "options": [{"value": "sexual", "label": "Suggestive"}, {"value": "nudity", "label": "Nudity"}, {"value": "porn", "label": "Porn"}, {"value": "graphic-media", "label": "Graphic media"}]}], "writes": [{"as": "post", "collection": "app.bsky.feed.post", "record": {"text": {"$value": "text"}, "facets": {"$facets": "text"}, "langs": {"$value": "langs"}, "labels": {"$when": ["labels"], "value": {"$type": "com.atproto.label.defs#selfLabels", "values": {"$each": "labels", "value": {"val": {"$item": "."}}}}}, "reply": {"root": {"$value": "root"}, "parent": {"$value": "parent"}}, "embed": {"$first": [{"$when": ["photos"], "value": {"$type": "app.bsky.embed.images", "images": {"$each": "photos", "value": {"image": {"$item": "blob"}, "alt": {"$item": "alt"}, "aspectRatio": {"$item": "aspectRatio"}}}}}, {"$when": ["card"], "value": {"$type": "app.bsky.embed.external", "external": {"$value": "card"}}}]}, "createdAt": {"$now": true}}}]}},
												{
													"component": "Action",
													"props": {
														"label": "Repost",
														"icon": "repost",
														"count": { "$": "post.repostCount" },
														"done": "Reposted",
														"create": {
															"collection": "app.bsky.feed.repost",
															"record": { "subject": { "$strongRef": "post" }, "createdAt": { "$now": true } }
														},
														"existing": { "$": "post.viewer.repost" }
													}
												},
												{
													"component": "Action",
													"props": {
														"label": "Like",
														"icon": "heart",
														"count": { "$": "post.likeCount" },
														"done": "Liked",
														"create": { "collection": "app.bsky.feed.like", "record": { "subject": { "$strongRef": "post" }, "createdAt": { "$now": true } } },
														"existing": { "$": "post.viewer.like" }
													}
												},
												{"component": "Compose", "props": {"label": "Quote", "icon": "quote", "title": "Quote post", "about": {"$": "post.record.text"}, "send": "Post", "given": {"quote": {"$strongRef": "post"}}, "fields": [{"name": "text", "kind": "text", "placeholder": "Add a comment", "max": 300, "facets": true, "suggest": {"method": "app.bsky.actor.searchActorsTypeahead", "service": "did:web:api.bsky.app#bsky_appview", "param": "q", "params": {"limit": 8}, "items": "actors", "did": "did", "handle": "handle", "name": "displayName", "avatar": "avatar"}, "required": true}, {"name": "photos", "kind": "photos", "label": "Images", "min": 0, "max": 4, "alt": true, "maxBytes": 1000000, "maxSide": 2000}, {"name": "langs", "kind": "langs", "label": "Language", "max": 3}, {"name": "labels", "kind": "labels", "label": "Content warning", "options": [{"value": "sexual", "label": "Suggestive"}, {"value": "nudity", "label": "Nudity"}, {"value": "porn", "label": "Porn"}, {"value": "graphic-media", "label": "Graphic media"}]}, {"name": "gate", "kind": "choice", "label": "Who can reply", "multiple": true, "options": [{"label": "Everybody", "value": null, "only": true}, {"label": "Nobody", "value": [], "only": true}, {"label": "Mentioned", "value": [{"$type": "app.bsky.feed.threadgate#mentionRule"}]}, {"label": "Following", "value": [{"$type": "app.bsky.feed.threadgate#followingRule"}]}, {"label": "Followers", "value": [{"$type": "app.bsky.feed.threadgate#followerRule"}]}]}], "writes": [{"as": "post", "collection": "app.bsky.feed.post", "record": {"text": {"$value": "text"}, "facets": {"$facets": "text"}, "langs": {"$value": "langs"}, "labels": {"$when": ["labels"], "value": {"$type": "com.atproto.label.defs#selfLabels", "values": {"$each": "labels", "value": {"val": {"$item": "."}}}}}, "embed": {"$first": [{"$when": ["quote", "photos"], "value": {"$type": "app.bsky.embed.recordWithMedia", "record": {"$type": "app.bsky.embed.record", "record": {"$value": "quote"}}, "media": {"$type": "app.bsky.embed.images", "images": {"$each": "photos", "value": {"image": {"$item": "blob"}, "alt": {"$item": "alt"}, "aspectRatio": {"$item": "aspectRatio"}}}}}}, {"$when": ["quote"], "value": {"$type": "app.bsky.embed.record", "record": {"$value": "quote"}}}, {"$when": ["photos"], "value": {"$type": "app.bsky.embed.images", "images": {"$each": "photos", "value": {"image": {"$item": "blob"}, "alt": {"$item": "alt"}, "aspectRatio": {"$item": "aspectRatio"}}}}}]}, "createdAt": {"$now": true}}}, {"when": ["gate"], "rkey": {"$rkey": "post"}, "collection": "app.bsky.feed.threadgate", "record": {"post": {"$uri": "post"}, "allow": {"$value": "gate"}, "createdAt": {"$now": true}}}]}}
											]
										}
									]
								}
							]
						}
					]
				},
				{
					"component": "Stack",
					"props": { "gap": "sm" },
					"children": [
						{
							"component": "Row",
							"props": { "gap": "sm", "align": "center" },
							"children": [
								{
									"component": "Image",
									"props": { "src": { "$": "response.thread.post.author.avatar" }, "alt": { "$": "response.thread.post.author.handle" }, "size": "face" }
								},
								{
									"component": "Row",
									"props": { "gap": "xs", "align": "center", "wrap": "cut" },
									"children": [
										{
											"component": "Link",
											"props": {
												"href": { "$": "response.thread.post.author.did" },
												"label": { "$": ["response.thread.post.author.displayName", "response.thread.post.author.handle"] }
											}
										},
										{ "component": "Text", "props": { "value": { "$": "response.thread.post.author.handle" }, "style": "muted", "prefix": "@" } }
									]
								}
							]
						},
						{
							"component": "RichText",
							"props": {
								"value": { "$": "response.thread.post.record.text" },
								"format": "facets",
								"facets": { "$": "response.thread.post.record.facets" }
							}
						},
						{
							"component": "Embed",
							"props": {
								"value": { "$": "response.thread.post.embed" },
								"did": { "$": "response.thread.post.author.did" },
								"uri": { "$": "response.thread.post.uri" }
							}
						},
						{ "component": "Time", "props": { "value": { "$": "response.thread.post.record.createdAt" } } },
						{
							"component": "Row",
							"props": { "gap": "lg", "align": "center" },
							"children": [
								{"component": "Compose", "props": {"label": "Reply", "icon": "reply", "count": {"$": "response.thread.post.replyCount"}, "closed": {"$": "response.thread.post.viewer.replyDisabled"}, "title": {"$": ["response.thread.post.author.displayName", "response.thread.post.author.handle"]}, "about": {"$": "response.thread.post.record.text"}, "send": "Reply", "given": {"root": {"$first": [{"$": "response.thread.post.record.reply.root"}, {"$strongRef": "response.thread.post"}]}, "parent": {"$strongRef": "response.thread.post"}}, "fields": [{"name": "text", "kind": "text", "placeholder": "Write your reply", "max": 300, "facets": true, "suggest": {"method": "app.bsky.actor.searchActorsTypeahead", "service": "did:web:api.bsky.app#bsky_appview", "param": "q", "params": {"limit": 8}, "items": "actors", "did": "did", "handle": "handle", "name": "displayName", "avatar": "avatar"}, "required": true}, {"name": "photos", "kind": "photos", "label": "Images", "min": 0, "max": 4, "alt": true, "maxBytes": 1000000, "maxSide": 2000}, {"name": "card", "kind": "card", "from": "text"}, {"name": "langs", "kind": "langs", "label": "Language", "max": 3}, {"name": "labels", "kind": "labels", "label": "Content warning", "options": [{"value": "sexual", "label": "Suggestive"}, {"value": "nudity", "label": "Nudity"}, {"value": "porn", "label": "Porn"}, {"value": "graphic-media", "label": "Graphic media"}]}], "writes": [{"as": "post", "collection": "app.bsky.feed.post", "record": {"text": {"$value": "text"}, "facets": {"$facets": "text"}, "langs": {"$value": "langs"}, "labels": {"$when": ["labels"], "value": {"$type": "com.atproto.label.defs#selfLabels", "values": {"$each": "labels", "value": {"val": {"$item": "."}}}}}, "reply": {"root": {"$value": "root"}, "parent": {"$value": "parent"}}, "embed": {"$first": [{"$when": ["photos"], "value": {"$type": "app.bsky.embed.images", "images": {"$each": "photos", "value": {"image": {"$item": "blob"}, "alt": {"$item": "alt"}, "aspectRatio": {"$item": "aspectRatio"}}}}}, {"$when": ["card"], "value": {"$type": "app.bsky.embed.external", "external": {"$value": "card"}}}]}, "createdAt": {"$now": true}}}]}},
								{
									"component": "Action",
									"props": {
										"label": "Repost",
										"icon": "repost",
										"count": { "$": "response.thread.post.repostCount" },
										"done": "Reposted",
										"create": {
											"collection": "app.bsky.feed.repost",
											"record": { "subject": { "$strongRef": "response.thread.post" }, "createdAt": { "$now": true } }
										},
										"existing": { "$": "response.thread.post.viewer.repost" }
									}
								},
								{
									"component": "Action",
									"props": {
										"label": "Like",
										"icon": "heart",
										"count": { "$": "response.thread.post.likeCount" },
										"done": "Liked",
										"create": {
											"collection": "app.bsky.feed.like",
											"record": { "subject": { "$strongRef": "response.thread.post" }, "createdAt": { "$now": true } }
										},
										"existing": { "$": "response.thread.post.viewer.like" }
									}
								},
								{"component": "Compose", "props": {"label": "Quote", "icon": "quote", "title": "Quote post", "about": {"$": "response.thread.post.record.text"}, "send": "Post", "given": {"quote": {"$strongRef": "response.thread.post"}}, "fields": [{"name": "text", "kind": "text", "placeholder": "Add a comment", "max": 300, "facets": true, "suggest": {"method": "app.bsky.actor.searchActorsTypeahead", "service": "did:web:api.bsky.app#bsky_appview", "param": "q", "params": {"limit": 8}, "items": "actors", "did": "did", "handle": "handle", "name": "displayName", "avatar": "avatar"}, "required": true}, {"name": "photos", "kind": "photos", "label": "Images", "min": 0, "max": 4, "alt": true, "maxBytes": 1000000, "maxSide": 2000}, {"name": "langs", "kind": "langs", "label": "Language", "max": 3}, {"name": "labels", "kind": "labels", "label": "Content warning", "options": [{"value": "sexual", "label": "Suggestive"}, {"value": "nudity", "label": "Nudity"}, {"value": "porn", "label": "Porn"}, {"value": "graphic-media", "label": "Graphic media"}]}, {"name": "gate", "kind": "choice", "label": "Who can reply", "multiple": true, "options": [{"label": "Everybody", "value": null, "only": true}, {"label": "Nobody", "value": [], "only": true}, {"label": "Mentioned", "value": [{"$type": "app.bsky.feed.threadgate#mentionRule"}]}, {"label": "Following", "value": [{"$type": "app.bsky.feed.threadgate#followingRule"}]}, {"label": "Followers", "value": [{"$type": "app.bsky.feed.threadgate#followerRule"}]}]}], "writes": [{"as": "post", "collection": "app.bsky.feed.post", "record": {"text": {"$value": "text"}, "facets": {"$facets": "text"}, "langs": {"$value": "langs"}, "labels": {"$when": ["labels"], "value": {"$type": "com.atproto.label.defs#selfLabels", "values": {"$each": "labels", "value": {"val": {"$item": "."}}}}}, "embed": {"$first": [{"$when": ["quote", "photos"], "value": {"$type": "app.bsky.embed.recordWithMedia", "record": {"$type": "app.bsky.embed.record", "record": {"$value": "quote"}}, "media": {"$type": "app.bsky.embed.images", "images": {"$each": "photos", "value": {"image": {"$item": "blob"}, "alt": {"$item": "alt"}, "aspectRatio": {"$item": "aspectRatio"}}}}}}, {"$when": ["quote"], "value": {"$type": "app.bsky.embed.record", "record": {"$value": "quote"}}}, {"$when": ["photos"], "value": {"$type": "app.bsky.embed.images", "images": {"$each": "photos", "value": {"image": {"$item": "blob"}, "alt": {"$item": "alt"}, "aspectRatio": {"$item": "aspectRatio"}}}}}]}, "createdAt": {"$now": true}}}, {"when": ["gate"], "rkey": {"$rkey": "post"}, "collection": "app.bsky.feed.threadgate", "record": {"post": {"$uri": "post"}, "allow": {"$value": "gate"}, "createdAt": {"$now": true}}}]}}
							]
						}
					]
				},
				{
					"component": "Tree",
					"props": {
						"items": { "$": "response.thread.replies" },
						"children": "replies",
						"depth": 6,
						"line": "face",
						"open": { "query": "app.bsky.feed.getPostThread", "params": { "uri": { "$": "post.uri" } } }
					},
					"children": [
						{
							"component": "Row",
							"props": { "gap": "sm", "align": "start" },
							"children": [
								{ "component": "Image", "props": { "src": { "$": "post.author.avatar" }, "alt": { "$": "post.author.handle" }, "size": "face" } },
								{
									"component": "Stack",
									"props": { "gap": "sm" },
									"children": [
										{
											"component": "Row",
											"props": { "gap": "xs", "align": "center", "wrap": "cut" },
											"children": [
												{
													"component": "Link",
													"props": { "href": { "$": "post.author.did" }, "label": { "$": ["post.author.displayName", "post.author.handle"] } }
												},
												{ "component": "Text", "props": { "value": { "$": "post.author.handle" }, "style": "muted", "prefix": "@" } },
												{ "component": "Text", "props": { "value": "·", "style": "muted" } },
												{ "component": "Time", "props": { "value": { "$": "post.record.createdAt" } } }
											]
										},
										{ "component": "RichText", "props": { "value": { "$": "post.record.text" }, "format": "facets", "facets": { "$": "post.record.facets" } } },
										{ "component": "Embed", "props": { "value": { "$": "post.embed" }, "did": { "$": "post.author.did" }, "uri": { "$": "post.uri" } } },
										{
											"component": "Row",
											"props": { "gap": "lg", "align": "center" },
											"children": [
												{"component": "Compose", "props": {"label": "Reply", "icon": "reply", "count": {"$": "post.replyCount"}, "closed": {"$": "post.viewer.replyDisabled"}, "title": {"$": ["post.author.displayName", "post.author.handle"]}, "about": {"$": "post.record.text"}, "send": "Reply", "given": {"root": {"$first": [{"$": "post.record.reply.root"}, {"$strongRef": "post"}]}, "parent": {"$strongRef": "post"}}, "fields": [{"name": "text", "kind": "text", "placeholder": "Write your reply", "max": 300, "facets": true, "suggest": {"method": "app.bsky.actor.searchActorsTypeahead", "service": "did:web:api.bsky.app#bsky_appview", "param": "q", "params": {"limit": 8}, "items": "actors", "did": "did", "handle": "handle", "name": "displayName", "avatar": "avatar"}, "required": true}, {"name": "photos", "kind": "photos", "label": "Images", "min": 0, "max": 4, "alt": true, "maxBytes": 1000000, "maxSide": 2000}, {"name": "card", "kind": "card", "from": "text"}, {"name": "langs", "kind": "langs", "label": "Language", "max": 3}, {"name": "labels", "kind": "labels", "label": "Content warning", "options": [{"value": "sexual", "label": "Suggestive"}, {"value": "nudity", "label": "Nudity"}, {"value": "porn", "label": "Porn"}, {"value": "graphic-media", "label": "Graphic media"}]}], "writes": [{"as": "post", "collection": "app.bsky.feed.post", "record": {"text": {"$value": "text"}, "facets": {"$facets": "text"}, "langs": {"$value": "langs"}, "labels": {"$when": ["labels"], "value": {"$type": "com.atproto.label.defs#selfLabels", "values": {"$each": "labels", "value": {"val": {"$item": "."}}}}}, "reply": {"root": {"$value": "root"}, "parent": {"$value": "parent"}}, "embed": {"$first": [{"$when": ["photos"], "value": {"$type": "app.bsky.embed.images", "images": {"$each": "photos", "value": {"image": {"$item": "blob"}, "alt": {"$item": "alt"}, "aspectRatio": {"$item": "aspectRatio"}}}}}, {"$when": ["card"], "value": {"$type": "app.bsky.embed.external", "external": {"$value": "card"}}}]}, "createdAt": {"$now": true}}}]}},
												{
													"component": "Action",
													"props": {
														"label": "Repost",
														"icon": "repost",
														"count": { "$": "post.repostCount" },
														"done": "Reposted",
														"create": {
															"collection": "app.bsky.feed.repost",
															"record": { "subject": { "$strongRef": "post" }, "createdAt": { "$now": true } }
														},
														"existing": { "$": "post.viewer.repost" }
													}
												},
												{
													"component": "Action",
													"props": {
														"label": "Like",
														"icon": "heart",
														"count": { "$": "post.likeCount" },
														"done": "Liked",
														"create": { "collection": "app.bsky.feed.like", "record": { "subject": { "$strongRef": "post" }, "createdAt": { "$now": true } } },
														"existing": { "$": "post.viewer.like" }
													}
												},
												{"component": "Compose", "props": {"label": "Quote", "icon": "quote", "title": "Quote post", "about": {"$": "post.record.text"}, "send": "Post", "given": {"quote": {"$strongRef": "post"}}, "fields": [{"name": "text", "kind": "text", "placeholder": "Add a comment", "max": 300, "facets": true, "suggest": {"method": "app.bsky.actor.searchActorsTypeahead", "service": "did:web:api.bsky.app#bsky_appview", "param": "q", "params": {"limit": 8}, "items": "actors", "did": "did", "handle": "handle", "name": "displayName", "avatar": "avatar"}, "required": true}, {"name": "photos", "kind": "photos", "label": "Images", "min": 0, "max": 4, "alt": true, "maxBytes": 1000000, "maxSide": 2000}, {"name": "langs", "kind": "langs", "label": "Language", "max": 3}, {"name": "labels", "kind": "labels", "label": "Content warning", "options": [{"value": "sexual", "label": "Suggestive"}, {"value": "nudity", "label": "Nudity"}, {"value": "porn", "label": "Porn"}, {"value": "graphic-media", "label": "Graphic media"}]}, {"name": "gate", "kind": "choice", "label": "Who can reply", "multiple": true, "options": [{"label": "Everybody", "value": null, "only": true}, {"label": "Nobody", "value": [], "only": true}, {"label": "Mentioned", "value": [{"$type": "app.bsky.feed.threadgate#mentionRule"}]}, {"label": "Following", "value": [{"$type": "app.bsky.feed.threadgate#followingRule"}]}, {"label": "Followers", "value": [{"$type": "app.bsky.feed.threadgate#followerRule"}]}]}], "writes": [{"as": "post", "collection": "app.bsky.feed.post", "record": {"text": {"$value": "text"}, "facets": {"$facets": "text"}, "langs": {"$value": "langs"}, "labels": {"$when": ["labels"], "value": {"$type": "com.atproto.label.defs#selfLabels", "values": {"$each": "labels", "value": {"val": {"$item": "."}}}}}, "embed": {"$first": [{"$when": ["quote", "photos"], "value": {"$type": "app.bsky.embed.recordWithMedia", "record": {"$type": "app.bsky.embed.record", "record": {"$value": "quote"}}, "media": {"$type": "app.bsky.embed.images", "images": {"$each": "photos", "value": {"image": {"$item": "blob"}, "alt": {"$item": "alt"}, "aspectRatio": {"$item": "aspectRatio"}}}}}}, {"$when": ["quote"], "value": {"$type": "app.bsky.embed.record", "record": {"$value": "quote"}}}, {"$when": ["photos"], "value": {"$type": "app.bsky.embed.images", "images": {"$each": "photos", "value": {"image": {"$item": "blob"}, "alt": {"$item": "alt"}, "aspectRatio": {"$item": "aspectRatio"}}}}}]}, "createdAt": {"$now": true}}}, {"when": ["gate"], "rkey": {"$rkey": "post"}, "collection": "app.bsky.feed.threadgate", "record": {"post": {"$uri": "post"}, "allow": {"$value": "gate"}, "createdAt": {"$now": true}}}]}}
											]
										}
									]
								}
							]
						}
					]
				}
			]
		}
	}
}