{
    "openapi": "3.1.0",
    "info": {
        "title": "Box Of Rules manuals: read-only addresses",
        "version": "1.0.0",
        "summary": "Manual pages as Markdown, and the search index, for agents.",
        "description": "Everything here is public, read-only and needs no key and no sign-in. The same Markdown is returned by a page's normal address when the request says \"Accept: text/markdown\". An MCP server with the same content is at https://plugins.boxofrules.com/docs/mcp (JSON-RPC over Streamable HTTP; see https://plugins.boxofrules.com/docs/mcp/server-card).",
        "contact": {
            "name": "Box Of Rules",
            "url": "https://boxofrules.com"
        }
    },
    "externalDocs": {
        "description": "For AI agents",
        "url": "https://plugins.boxofrules.com/docs/for-ai-agents"
    },
    "servers": [
        {
            "url": "https://plugins.boxofrules.com/docs"
        }
    ],
    "security": [],
    "paths": {
        "/llms.txt": {
            "get": {
                "operationId": "getLlms",
                "summary": "Every manual and every page, each with its Markdown address and summary (llmstxt.org).",
                "responses": {
                    "200": {
                        "description": "The list.",
                        "content": {
                            "text/plain": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such manual or page."
                    }
                }
            }
        },
        "/llms-full.txt": {
            "get": {
                "operationId": "getFull",
                "summary": "Every page of every manual as Markdown, in one file.",
                "responses": {
                    "200": {
                        "description": "Every manual.",
                        "content": {
                            "text/plain": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such manual or page."
                    }
                }
            }
        },
        "/index.md": {
            "get": {
                "operationId": "getManuals",
                "summary": "The list of manuals as Markdown.",
                "responses": {
                    "200": {
                        "description": "The list of manuals.",
                        "headers": {
                            "x-markdown-tokens": {
                                "description": "A rough count of the tokens in the body (characters divided by four).",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "Link": {
                                "description": "rel=\"canonical\" names the HTML page this Markdown stands for.",
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "text/markdown": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such manual or page."
                    }
                }
            }
        },
        "/{manual}/index.md": {
            "get": {
                "operationId": "getManualHome",
                "summary": "A manual's home as Markdown: what the product is, and every page with its summary.",
                "parameters": [
                    {
                        "name": "manual",
                        "in": "path",
                        "required": true,
                        "description": "The manual's id.",
                        "schema": {
                            "type": "string",
                            "pattern": "^[a-z0-9-]+$",
                            "enum": [
                                "box-of-bass",
                                "br108",
                                "focus",
                                "memo-upscale",
                                "picking-fingers"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The manual's home.",
                        "headers": {
                            "x-markdown-tokens": {
                                "description": "A rough count of the tokens in the body (characters divided by four).",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "Link": {
                                "description": "rel=\"canonical\" names the HTML page this Markdown stands for.",
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "text/markdown": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such manual or page."
                    }
                }
            }
        },
        "/{manual}/{page}.md": {
            "get": {
                "operationId": "getPage",
                "summary": "One page of a manual as Markdown, with pictures written out as numbered parts, walkthroughs as steps and recipes as tables.",
                "parameters": [
                    {
                        "name": "manual",
                        "in": "path",
                        "required": true,
                        "description": "The manual's id.",
                        "schema": {
                            "type": "string",
                            "pattern": "^[a-z0-9-]+$",
                            "enum": [
                                "box-of-bass",
                                "br108",
                                "focus",
                                "memo-upscale",
                                "picking-fingers"
                            ]
                        }
                    },
                    {
                        "name": "page",
                        "in": "path",
                        "required": true,
                        "description": "The page id, as listed in llms.txt and in the search index.",
                        "schema": {
                            "type": "string",
                            "pattern": "^[a-z0-9-]+$"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The page.",
                        "headers": {
                            "x-markdown-tokens": {
                                "description": "A rough count of the tokens in the body (characters divided by four).",
                                "schema": {
                                    "type": "integer"
                                }
                            },
                            "Link": {
                                "description": "rel=\"canonical\" names the HTML page this Markdown stands for.",
                                "schema": {
                                    "type": "string"
                                }
                            }
                        },
                        "content": {
                            "text/markdown": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such manual or page."
                    }
                }
            }
        },
        "/{manual}/search.json": {
            "get": {
                "operationId": "getSearchIndex",
                "summary": "The whole search index of a manual. Filter it yourself: every word of the question should appear in title, where or text.",
                "parameters": [
                    {
                        "name": "manual",
                        "in": "path",
                        "required": true,
                        "description": "The manual's id.",
                        "schema": {
                            "type": "string",
                            "pattern": "^[a-z0-9-]+$",
                            "enum": [
                                "box-of-bass",
                                "br108",
                                "focus",
                                "memo-upscale",
                                "picking-fingers"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Every page, section, numbered part, walkthrough step, recipe and video.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/SearchEntry"
                                    }
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such manual or page."
                    }
                }
            }
        },
        "/{manual}/llms.txt": {
            "get": {
                "operationId": "getManualLlms",
                "summary": "The manual's pages in reading order, each with its Markdown address and summary (llmstxt.org).",
                "parameters": [
                    {
                        "name": "manual",
                        "in": "path",
                        "required": true,
                        "description": "The manual's id.",
                        "schema": {
                            "type": "string",
                            "pattern": "^[a-z0-9-]+$",
                            "enum": [
                                "box-of-bass",
                                "br108",
                                "focus",
                                "memo-upscale",
                                "picking-fingers"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The list.",
                        "content": {
                            "text/plain": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such manual or page."
                    }
                }
            }
        },
        "/{manual}/llms-full.txt": {
            "get": {
                "operationId": "getManualFull",
                "summary": "Every page of the manual as Markdown, in one file.",
                "parameters": [
                    {
                        "name": "manual",
                        "in": "path",
                        "required": true,
                        "description": "The manual's id.",
                        "schema": {
                            "type": "string",
                            "pattern": "^[a-z0-9-]+$",
                            "enum": [
                                "box-of-bass",
                                "br108",
                                "focus",
                                "memo-upscale",
                                "picking-fingers"
                            ]
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "The whole manual.",
                        "content": {
                            "text/plain": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "No such manual or page."
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "SearchEntry": {
                "type": "object",
                "required": [
                    "title",
                    "where",
                    "kind",
                    "url",
                    "text"
                ],
                "properties": {
                    "title": {
                        "type": "string",
                        "description": "The page, section, control, step or recipe."
                    },
                    "where": {
                        "type": "string",
                        "description": "The page it is on; empty for a page itself."
                    },
                    "kind": {
                        "type": "string",
                        "description": "\"Page\", \"Section\", \"Recipe\", \"Video\", \"Step 1\" and so on, or for a numbered part of a picture the sort of control it is (for example \"Dial\")."
                    },
                    "url": {
                        "type": "string",
                        "description": "The address that opens it, relative to this host; a fragment selects the part."
                    },
                    "text": {
                        "type": "string",
                        "description": "What the manual says about it, as plain text."
                    }
                }
            }
        }
    }
}
