~ 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
72 lines · 2.1 KB Raw History
{
	"lexicon": 1,
	"id": "social.grain.gallery.getDeletionPlan",
	"defs": {
		"main": {
			"type": "query",
			"description": "Plan the deletion of one of the viewer's galleries with what hangs off it, as social.grain.gallery.deleteGallery deletes it: its items, the photos they place that no other of the viewer's galleries does, those photos' EXIF, and the viewer's own favorite of it and comments on it, children first, then the gallery. What others wrote about it stays theirs. Answered as the deletes of one com.atproto.repo.applyWrites, for an app to commit at the viewer's PDS all or none, then call social.grain.sync.refreshRecords with their URIs. A plan more writes than one commit takes is refused, never split. Requires auth.",
			"parameters": {
				"type": "params",
				"required": [
					"gallery"
				],
				"properties": {
					"gallery": {
						"type": "string",
						"format": "at-uri",
						"description": "The viewer's gallery to delete."
					}
				}
			},
			"output": {
				"encoding": "application/json",
				"schema": {
					"type": "object",
					"required": [
						"writes"
					],
					"properties": {
						"writes": {
							"type": "array",
							"description": "The deletes, children first, the gallery last: each a com.atproto.repo.applyWrites#delete in the viewer's repository.",
							"maxLength": 200,
							"items": {
								"type": "ref",
								"ref": "#delete"
							}
						}
					}
				}
			},
			"errors": [
				{
					"name": "NotFound",
					"description": "The viewer has no gallery by that URI."
				},
				{
					"name": "TooManyWrites",
					"description": "Deleting the gallery takes more writes than one commit takes."
				}
			]
		},
		"delete": {
			"type": "object",
			"description": "A record to delete from the viewer's repository, as com.atproto.repo.applyWrites#delete names it.",
			"required": [
				"collection",
				"rkey"
			],
			"properties": {
				"collection": {
					"type": "string",
					"format": "nsid"
				},
				"rkey": {
					"type": "string",
					"format": "record-key",
					"maxLength": 512
				}
			}
		}
	}
}