{
  "name": "gus-utilitybelt",
  "version": "1.0.0",
  "description": "Developer utilities that run 100% locally (browser or Bun): passwords, HMAC/hash, UUID, cron, regex, code formatter, diff, Base64/URL/JWT, timestamps, QR Code, barcodes, Lorem/Mussum Ipsum, WhatsApp links, Brazilian CPF/CNPJ.",
  "interfaces": {
    "browserJs": "window.utilitybelt.call(name, input) -> {ok, result|error}",
    "webmcp": "navigator.modelContext tools (same names) registered on page load",
    "url": "/run?action=<name>&<param>=<value> (result JSON in #ub-result)",
    "mcpStdio": "bun run mcp  (tools/list, tools/call)",
    "cli": "bun run ub <name> --param value"
  },
  "tools": [
    {
      "name": "password_generate",
      "title": "Gerar senhas",
      "description": "Generate cryptographically secure random passwords (CSPRNG, unbiased). Returns the passwords plus estimated entropy in bits and a strength label. Presets: \"pin\" (6 digits), \"strong\" (20 chars, all sets), \"extreme\" (48 chars, no ambiguous chars). Explicit options override the preset.",
      "category": "seguranca",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "length": {
            "type": "integer",
            "minimum": 4,
            "maximum": 512,
            "default": 20,
            "description": "Password length."
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 1,
            "description": "How many passwords to generate."
          },
          "preset": {
            "type": "string",
            "enum": [
              "pin",
              "strong",
              "extreme"
            ],
            "description": "Optional preset."
          },
          "lower": {
            "type": "boolean",
            "default": true,
            "description": "Include a-z."
          },
          "upper": {
            "type": "boolean",
            "default": true,
            "description": "Include A-Z."
          },
          "digits": {
            "type": "boolean",
            "default": true,
            "description": "Include 0-9."
          },
          "symbols": {
            "type": "boolean",
            "default": true,
            "description": "Include symbols !@#$%^&*()-_=+[]{};:,.<>?/~"
          },
          "noAmbiguous": {
            "type": "boolean",
            "default": false,
            "description": "Exclude look-alike characters (O 0 o I l 1 |)."
          },
          "noRepeat": {
            "type": "boolean",
            "default": false,
            "description": "Never repeat a character."
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "examples": [
        {
          "length": 24,
          "count": 3
        },
        {
          "preset": "pin"
        }
      ]
    },
    {
      "name": "password_strength",
      "title": "Avaliar senha",
      "description": "Estimate the strength of an existing password from its length and character classes (brute-force entropy upper bound). The password is not stored or sent anywhere.",
      "category": "seguranca",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "password": {
            "type": "string",
            "description": "Password to evaluate."
          }
        },
        "required": [
          "password"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "hmac_sign",
      "title": "Gerar HMAC",
      "description": "Compute an HMAC signature (SHA-1, SHA-256, SHA-384 or SHA-512) of a message with a secret key. Useful for webhook signatures (GitHub, Stripe, etc).",
      "category": "seguranca",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Secret key (UTF-8)."
          },
          "message": {
            "type": "string",
            "default": "",
            "description": "Message/body to sign (UTF-8)."
          },
          "algorithm": {
            "type": "string",
            "enum": [
              "SHA-1",
              "SHA-256",
              "SHA-384",
              "SHA-512"
            ],
            "default": "SHA-256"
          },
          "encoding": {
            "type": "string",
            "enum": [
              "hex",
              "base64",
              "base64url"
            ],
            "default": "hex"
          }
        },
        "required": [
          "key"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "hmac_verify",
      "title": "Validar HMAC",
      "description": "Verify an HMAC signature in constant time. Accepts an optional \"sha256=\" style prefix. Returns valid=true/false and the expected signature.",
      "category": "seguranca",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "description": "Secret key (UTF-8)."
          },
          "message": {
            "type": "string",
            "default": "",
            "description": "Message/body that was signed."
          },
          "signature": {
            "type": "string",
            "description": "Signature to check."
          },
          "algorithm": {
            "type": "string",
            "enum": [
              "SHA-1",
              "SHA-256",
              "SHA-384",
              "SHA-512"
            ],
            "default": "SHA-256"
          },
          "encoding": {
            "type": "string",
            "enum": [
              "hex",
              "base64",
              "base64url"
            ],
            "default": "hex"
          }
        },
        "required": [
          "key",
          "signature"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "hash_digest",
      "title": "Hash (SHA)",
      "description": "Compute a SHA-1/SHA-256/SHA-384/SHA-512 digest of a UTF-8 text.",
      "category": "seguranca",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Input text (UTF-8)."
          },
          "algorithm": {
            "type": "string",
            "enum": [
              "SHA-1",
              "SHA-256",
              "SHA-384",
              "SHA-512"
            ],
            "default": "SHA-256"
          },
          "encoding": {
            "type": "string",
            "enum": [
              "hex",
              "base64",
              "base64url"
            ],
            "default": "hex"
          }
        },
        "required": [
          "text"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "uuid_generate",
      "title": "Gerar UUID",
      "description": "Generate UUIDs. v4 = random; v7 = time-ordered (sortable, best for database primary keys).",
      "category": "dev",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "version": {
            "type": "integer",
            "enum": [
              4,
              7
            ],
            "default": 4
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "default": 1
          },
          "uppercase": {
            "type": "boolean",
            "default": false
          },
          "hyphens": {
            "type": "boolean",
            "default": true
          },
          "braces": {
            "type": "boolean",
            "default": false,
            "description": "Wrap in {} (Microsoft GUID style)."
          }
        },
        "required": [],
        "additionalProperties": false
      },
      "examples": [
        {
          "version": 7,
          "count": 5
        }
      ]
    },
    {
      "name": "uuid_inspect",
      "title": "Inspecionar UUID",
      "description": "Validate a UUID and report its version, variant and, for v1/v6/v7, the embedded timestamp.",
      "category": "dev",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "uuid": {
            "type": "string",
            "description": "UUID with or without hyphens/braces."
          }
        },
        "required": [
          "uuid"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "cron_explain",
      "title": "Explicar cron",
      "description": "Validate a 5-field cron expression (minute hour day-of-month month day-of-week), describe it in plain language (en, pt, es or fr) and list the next run times (ISO 8601) in a given IANA timezone.",
      "category": "dev",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "expression": {
            "type": "string",
            "description": "e.g. \"0 9 * * 1-5\" or \"*/15 * * * *\"."
          },
          "timezone": {
            "type": "string",
            "description": "IANA timezone, e.g. \"America/Sao_Paulo\". Defaults to the runtime timezone."
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 5,
            "description": "How many upcoming runs to list."
          },
          "language": {
            "type": "string",
            "enum": [
              "en",
              "pt",
              "es",
              "fr"
            ],
            "default": "en",
            "description": "Language of the description."
          }
        },
        "required": [
          "expression"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "regex_test",
      "title": "Testar regex",
      "description": "Run a JavaScript regular expression against a text. Returns every match with index, numbered and named groups, and (optionally) the text after replacement ($1, $<name>, $& supported).",
      "category": "dev",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "pattern": {
            "type": "string",
            "description": "Regex source without slashes, e.g. \"(?<year>\\\\d{4})-(\\\\d{2})\"."
          },
          "flags": {
            "type": "string",
            "default": "gu",
            "description": "Any of g i m s u v y d."
          },
          "text": {
            "type": "string",
            "description": "Text to search."
          },
          "replacement": {
            "type": "string",
            "description": "Optional replacement string."
          }
        },
        "required": [
          "pattern",
          "text"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "language_detect",
      "title": "Detectar linguagem",
      "description": "Detect the programming/markup language of a code snippet (heuristics) and/or from a filename. Returns ranked candidates with confidence 0-1.",
      "category": "editor",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Source code to analyse."
          },
          "filename": {
            "type": "string",
            "description": "File name or path, e.g. \"docker-compose.yml\"."
          }
        },
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "name": "languages_list",
      "title": "Listar linguagens",
      "description": "List the languages known by the editor/formatter with their ids, extensions and which formatter engine is used (prettier, sql or basic cleanup). Use the id with code_format.",
      "category": "editor",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "query": {
            "type": "string",
            "description": "Optional search by name, id, alias or extension."
          }
        },
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "name": "code_format",
      "title": "Formatar código",
      "description": "Beautify/format source code. Prettier for JS/TS/JSX/TSX, JSON/JSONC/JSON5, YAML, HTML, Vue, Angular, CSS/SCSS/Less, Markdown/MDX, GraphQL, Handlebars, XML/SVG and PHP; sql-formatter for SQL dialects (PostgreSQL, MySQL, SQLite, T-SQL, PL/SQL). Other languages get whitespace cleanup. Language is taken from \"language\" (id), else \"filename\", else auto-detected.",
      "category": "editor",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Source code to format."
          },
          "language": {
            "type": "string",
            "description": "Language id (see languages_list), e.g. \"typescript\", \"postgresql\", \"yaml\"."
          },
          "filename": {
            "type": "string",
            "description": "Used to pick the language when \"language\" is missing."
          },
          "tabWidth": {
            "type": "integer",
            "minimum": 1,
            "maximum": 8,
            "default": 2
          },
          "useTabs": {
            "type": "boolean",
            "default": false
          },
          "printWidth": {
            "type": "integer",
            "minimum": 40,
            "maximum": 400,
            "default": 100
          }
        },
        "required": [
          "code"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "text_diff",
      "title": "Comparar textos (diff)",
      "description": "Compare two texts line by line. Returns a unified diff patch (git style) plus counts of added/removed lines.",
      "category": "editor",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "original": {
            "type": "string",
            "description": "Old text."
          },
          "modified": {
            "type": "string",
            "description": "New text."
          },
          "ignoreWhitespace": {
            "type": "boolean",
            "default": false
          },
          "context": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100,
            "default": 3,
            "description": "Context lines around changes."
          },
          "originalName": {
            "type": "string",
            "default": "a"
          },
          "modifiedName": {
            "type": "string",
            "default": "b"
          }
        },
        "required": [
          "original",
          "modified"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "base64",
      "title": "Base64",
      "description": "Encode UTF-8 text to Base64 or decode Base64/Base64URL back to UTF-8 text.",
      "category": "encode",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "encode",
              "decode"
            ],
            "default": "encode"
          },
          "urlSafe": {
            "type": "boolean",
            "default": false,
            "description": "Use Base64URL (- _ and no padding) when encoding."
          }
        },
        "required": [
          "text"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "url_encode",
      "title": "URL encode/decode",
      "description": "Percent-encode or decode text for URLs. component=true uses encodeURIComponent (for query values); false uses encodeURI (for whole URLs).",
      "category": "encode",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "encode",
              "decode"
            ],
            "default": "encode"
          },
          "component": {
            "type": "boolean",
            "default": true
          }
        },
        "required": [
          "text"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "jwt_decode",
      "title": "Decodificar JWT",
      "description": "Decode a JSON Web Token header and payload WITHOUT verifying the signature. Reports iat/nbf/exp as ISO dates and whether it is expired.",
      "category": "encode",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "The JWT (xxx.yyy.zzz). A leading \"Bearer \" is ignored."
          }
        },
        "required": [
          "token"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "timestamp_convert",
      "title": "Converter timestamp",
      "description": "Convert between Unix time (seconds or milliseconds, auto-detected) and ISO 8601 dates. Empty value = now. Also returns the date formatted in the given IANA timezone.",
      "category": "dev",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "description": "Unix seconds/ms (e.g. \"1735689600\") or a date string (e.g. \"2026-01-01T12:00:00Z\"). Empty = now."
          },
          "timezone": {
            "type": "string",
            "description": "IANA timezone for the \"local\" field, e.g. \"America/Sao_Paulo\"."
          }
        },
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "name": "lorem_generate",
      "title": "Lorem / Mussum Ipsum",
      "description": "Generate placeholder text: Lorem Ipsum or Mussum Ipsum (Brazilian humor variant), as paragraphs, sentences or words.",
      "category": "conteudo",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "paragraphs",
              "sentences",
              "words"
            ],
            "default": "paragraphs"
          },
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 500,
            "default": 3
          },
          "style": {
            "type": "string",
            "enum": [
              "lorem",
              "mussum"
            ],
            "default": "lorem"
          }
        },
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "name": "whatsapp_link",
      "title": "Link do WhatsApp",
      "description": "Build a wa.me click-to-chat link with an optional pre-filled message. Phone must include country and area code (e.g. 5511999998888).",
      "category": "whatsapp",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "phone": {
            "type": "string",
            "description": "Phone with country + area code. Non-digits are ignored."
          },
          "message": {
            "type": "string",
            "default": ""
          }
        },
        "required": [
          "phone"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "qr_generate",
      "title": "Gerar QR Code",
      "description": "Generate a QR Code for a text or URL. format \"svg\" returns SVG markup; \"png\" returns a data: URL (base64 PNG).",
      "category": "conteudo",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "description": "Content (text, URL, Wi-Fi string, Pix payload…)."
          },
          "format": {
            "type": "string",
            "enum": [
              "svg",
              "png"
            ],
            "default": "svg"
          },
          "size": {
            "type": "integer",
            "minimum": 64,
            "maximum": 2048,
            "default": 256,
            "description": "Width in pixels."
          },
          "errorCorrection": {
            "type": "string",
            "enum": [
              "L",
              "M",
              "Q",
              "H"
            ],
            "default": "M"
          },
          "dark": {
            "type": "string",
            "default": "#000000",
            "description": "Module color (hex)."
          },
          "light": {
            "type": "string",
            "default": "#ffffff",
            "description": "Background color (hex)."
          },
          "margin": {
            "type": "integer",
            "minimum": 0,
            "maximum": 20,
            "default": 2
          }
        },
        "required": [
          "text"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "barcode_generate",
      "title": "Gerar código de barras",
      "description": "Generate a 1D barcode as SVG. Formats: CODE128 (any ASCII), CODE39, EAN13 (12 digits, check digit computed), EAN8 (7 digits), UPC (11 digits), ITF14 (13 digits), MSI, pharmacode.",
      "category": "conteudo",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          },
          "format": {
            "type": "string",
            "enum": [
              "CODE128",
              "CODE39",
              "EAN13",
              "EAN8",
              "UPC",
              "ITF14",
              "MSI",
              "pharmacode"
            ],
            "default": "CODE128"
          },
          "width": {
            "type": "number",
            "minimum": 1,
            "maximum": 6,
            "default": 2,
            "description": "Bar width in px."
          },
          "height": {
            "type": "integer",
            "minimum": 20,
            "maximum": 300,
            "default": 90
          },
          "displayValue": {
            "type": "boolean",
            "default": true
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "whatsapp_webhook_sign",
      "title": "Assinar webhook do WhatsApp",
      "description": "Compute the X-Hub-Signature-256 header that Meta (WhatsApp Cloud API / Graph webhooks) sends: \"sha256=\" + hex HMAC-SHA256 of the RAW request body with the App Secret. Use it to test your webhook endpoint.",
      "category": "whatsapp",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "appSecret": {
            "type": "string",
            "description": "Meta App Secret (App settings → Basic). Not the access token."
          },
          "body": {
            "type": "string",
            "default": "",
            "description": "Raw request body exactly as sent (byte for byte)."
          }
        },
        "required": [
          "appSecret"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "whatsapp_webhook_verify",
      "title": "Validar webhook do WhatsApp",
      "description": "Verify a received X-Hub-Signature-256 header (with or without \"sha256=\") against the raw body and App Secret, in constant time. If invalid, the usual causes are a wrong App Secret or a body re-serialized by the framework instead of the raw bytes.",
      "category": "whatsapp",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "appSecret": {
            "type": "string"
          },
          "body": {
            "type": "string",
            "default": "",
            "description": "Raw request body exactly as received."
          },
          "signature": {
            "type": "string",
            "description": "Value of the X-Hub-Signature-256 header."
          }
        },
        "required": [
          "appSecret",
          "signature"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "wamid_decode",
      "title": "Decodificar WAMID",
      "description": "Decode WhatsApp message IDs (\"wamid.HBgL...\"). A WAMID is Base64 of a Thrift compact struct with the chat number (wa_id), direction (fromMe: true = sent by the business number) and the app-generated message id. Accepts one wamid, many (whitespace separated) or a whole webhook JSON (all wamid.* are extracted). Undocumented by Meta: use for debugging.",
      "category": "whatsapp",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "wamid": {
            "type": "string",
            "description": "WAMID(s) or any text/JSON containing them."
          }
        },
        "required": [
          "wamid"
        ],
        "additionalProperties": false
      },
      "examples": [
        {
          "wamid": "wamid.HBgLMTY1MDM4Nzk0MzkVAgARGBJDQjZCMzlEQUE4OTJBMTE4RTUA"
        }
      ]
    },
    {
      "name": "wamid_encode",
      "title": "Gerar WAMID",
      "description": "Build a WAMID in the same format WhatsApp uses (for fixtures and webhook tests). Without messageId a random hex id is used.",
      "category": "whatsapp",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "phone": {
            "type": "string",
            "description": "Number with country code, e.g. 5511999998888."
          },
          "fromMe": {
            "type": "boolean",
            "default": true,
            "description": "true = sent by the business number; false = received from the contact."
          },
          "messageId": {
            "type": "string",
            "description": "Message id (e.g. 3EB0C0E4FF8C06B19F0477). Empty = random."
          }
        },
        "required": [
          "phone"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "cpf_generate",
      "title": "Gerar CPF",
      "description": "Generate valid (check-digit correct) Brazilian CPF numbers for testing. They are random, not real people.",
      "category": "documentos",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "default": 1
          },
          "formatted": {
            "type": "boolean",
            "default": true,
            "description": "Use the 000.000.000-00 mask."
          }
        },
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "name": "cpf_validate",
      "title": "Validar CPF",
      "description": "Validate a Brazilian CPF (check digits). Accepts with or without mask.",
      "category": "documentos",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "cnpj_generate",
      "title": "Gerar CNPJ",
      "description": "Generate valid Brazilian CNPJ numbers for testing, numeric or the new alphanumeric format (Receita Federal, 2026).",
      "category": "documentos",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "minimum": 1,
            "maximum": 1000,
            "default": 1
          },
          "formatted": {
            "type": "boolean",
            "default": true,
            "description": "Use the 00.000.000/0000-00 mask."
          },
          "alphanumeric": {
            "type": "boolean",
            "default": false
          }
        },
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "name": "cnpj_validate",
      "title": "Validar CNPJ",
      "description": "Validate a Brazilian CNPJ (numeric or alphanumeric). Accepts with or without mask.",
      "category": "documentos",
      "readOnly": true,
      "browserOnly": false,
      "inputSchema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string"
          }
        },
        "required": [
          "value"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "app_open",
      "title": "Abrir app/ferramenta",
      "description": "Show an app or tool on screen for the user. Apps: editor, image, motion, clipboard, api, seguranca, dev, conteudo, whatsapp, documentos. Tools: senhas, hmac, uuid, cron, regex, lorem, qr, barcode, whatsapp, wa-hmac, wamid, cpf-cnpj (opening a tool also switches to its app). automation=true hides the side menu on the \"api\" app (for automation/kiosk use).",
      "category": "app",
      "readOnly": true,
      "browserOnly": true,
      "inputSchema": {
        "type": "object",
        "properties": {
          "app": {
            "type": "string",
            "enum": [
              "editor",
              "image",
              "motion",
              "clipboard",
              "api",
              "seguranca",
              "dev",
              "conteudo",
              "whatsapp",
              "documentos"
            ]
          },
          "tool": {
            "type": "string",
            "enum": [
              "senhas",
              "hmac",
              "uuid",
              "cron",
              "regex",
              "lorem",
              "qr",
              "barcode",
              "whatsapp",
              "wa-hmac",
              "wamid",
              "cpf-cnpj"
            ]
          },
          "automation": {
            "type": "boolean",
            "description": "Hide the side menu (only applies to the \"api\" app)."
          }
        },
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "name": "app_state",
      "title": "Estado do app",
      "description": "Return what is on screen now (app, open tool), the editor active file and storage backend, clipboard history size and the available apps/tools.",
      "category": "app",
      "readOnly": true,
      "browserOnly": true,
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "name": "editor_list_files",
      "title": "Listar arquivos do editor",
      "description": "List files and folders in the editor workspace (browser IndexedDB, or the local folder the user opened) and the unsaved drafts.",
      "category": "editor",
      "readOnly": true,
      "browserOnly": true,
      "inputSchema": {
        "type": "object",
        "properties": {},
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "name": "editor_read_file",
      "title": "Ler arquivo do editor",
      "description": "Read a file (or draft, by its name e.g. \"Sem título-1\") from the editor. Without \"path\" reads the file currently open.",
      "category": "editor",
      "readOnly": true,
      "browserOnly": true,
      "inputSchema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "Workspace path like \"projeto/README.md\", or draft name."
          }
        },
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "name": "editor_write_file",
      "title": "Escrever arquivo no editor",
      "description": "Create or overwrite a file in the editor workspace (missing folders are created). save=true persists it (IndexedDB, or the real disk if the user opened a local folder); open=true shows it on screen.",
      "category": "editor",
      "readOnly": false,
      "browserOnly": true,
      "inputSchema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "description": "e.g. \"projeto/src/main.ts\"."
          },
          "content": {
            "type": "string"
          },
          "save": {
            "type": "boolean",
            "default": true
          },
          "open": {
            "type": "boolean",
            "default": true
          }
        },
        "required": [
          "path",
          "content"
        ],
        "additionalProperties": false
      }
    },
    {
      "name": "editor_new_draft",
      "title": "Novo rascunho no editor",
      "description": "Open a new unnamed draft in the editor with the given content (language auto-detected unless provided) and show it to the user. Good for handing code to the user to review/format/save.",
      "category": "editor",
      "readOnly": false,
      "browserOnly": true,
      "inputSchema": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "default": ""
          },
          "language": {
            "type": "string",
            "description": "Language id (see languages_list)."
          }
        },
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "name": "clipboard_history",
      "title": "Histórico do clipboard",
      "description": "List what the user copied inside the Utility Belt (newest first, pinned on top). Only copies made in this app are recorded.",
      "category": "app",
      "readOnly": true,
      "browserOnly": true,
      "inputSchema": {
        "type": "object",
        "properties": {
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 500,
            "default": 20
          },
          "type": {
            "type": "string",
            "enum": [
              "url",
              "color",
              "uuid",
              "json",
              "email",
              "number",
              "doc",
              "code",
              "text"
            ]
          },
          "search": {
            "type": "string",
            "description": "Case-insensitive substring filter."
          }
        },
        "required": [],
        "additionalProperties": false
      }
    },
    {
      "name": "clipboard_copy",
      "title": "Copiar para o clipboard",
      "description": "Put text on the system clipboard (when the browser allows it) and record it in the Utility Belt clipboard history.",
      "category": "app",
      "readOnly": false,
      "browserOnly": true,
      "inputSchema": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string"
          }
        },
        "required": [
          "text"
        ],
        "additionalProperties": false
      }
    }
  ]
}