cardex

Lorebook Schema

Lorebook

Simple way to make Lorebook JSON.from Chub

archived since this version archived
  • · Chub · lorebooks/yuu_yuzuriha/quick-lorebook-maker-af4c16f47f382 forks on Chub · private forks can't be archived
Lorebook
up to 538 of 538
BudgetPrompt budget
≈ 538

Description on Chubfrom Chub

Simple way to make Lorebook JSON, for when you want to add more lorebook entries.

Originally a part of my Card Creator card Simulator Card Creator (SCC), thought might be useful as a separate lorebook entry too.

Lorebook Schema

1 entries · scan depth 2 · budget 512 tokens · recursive scanning off

Simple way to make Lorebook JSON.

Book settings

Showing 1 of 1

  1. #1Lorebook Schema

    Keys: Lorebook, Schema, JSON

    Enabled · After character · Order 10 · 100%

    Use this JSON Schema when making Lorebook JSON:

    {
      "$schema": "https://json-schema.org/draft/2020-12/schema",
      "title": "Lorebook Schema",
      "description": "Schema for a standalone lorebook containing world information, character profiles, and system mechanics.",
      "type": "object",
      "properties": {
        "extensions": {
          "description": "Extensions object. Unused, default empty.",
          "type": "object",
          "const": {}
        },
        "entries": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/CharacterBookEntry"
          },
          "description": "Lorebook entries containing world information, character profiles, and system mechanics."
        }
      },
      "required": ["extensions", "entries"],
      "definitions": {
        "CharacterBookEntry": {
          "type": "object",
          "description": "A lorebook entry for a world element, character, or rule.",
          "properties": {
            "name": {
              "description": "A human-readable name for the entry, typically matching the first key.",
              "type": "string"
            },
            "id": {
              "description": "Unique ID (assigned sequentially starting from 0).",
              "type": "integer"
            },
            "keys": {
              "description": "Trigger keywords or phrases for this entry (e.g., [\"King's Landing\", \"Red Keep\"]).",
              "type": "array",
              "items": { "type": "string" },
              "minItems": 1
            },
            "content": {
              "description": "The information about the world, character, or rule to be injected.",
              "type": "string"
            },
            "enabled": {
              "description": "Entry enabled status.",
              "type": "boolean",
              "const": true
            },
            "insertion_order": {
              "description": "Entry insertion order.",
              "type": "integer",
              "const": 100
            },
            "position": {
              "description": "Entry position.",
              "type": "string",
              "const": "after_char"
            },
            "extensions": {
              "description": "Entry extensions object. Unused, default empty.",
              "type": "object",
              "const": {}
            }
          },
          "required": ["name", "id", "keys", "content", "enabled", "insertion_order", "position", "extensions"]
        }
      }
    }
    
    Entry settings