{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "version": "1.0",
  "name": "Delete PDF Pages Agent Tools",
  "domain": "delete-pages-in-pdf.com",
  "description": "Client-side browser tools for discovering, inspecting, selecting, deleting pages from PDF files, and navigating site resources.",
  "agent_instructions": "This website operates 100% client-side in the browser. No PDFs are uploaded to any server. To test or automate PDF deletion: 1. Click #btn-try-sample or upload a PDF via input[type=file]. 2. Toggle page selection using the page card checkboxes (e.g. #page-card-1) or toolbar buttons. 3. Click #btn-delete-pages. 4. Download the result via #btn-download-pdf.",
  "tools": [
    {
      "name": "try_sample_pdf",
      "description": "Loads a built-in 5-page sample PDF document into the workspace for instant demonstration and page deletion testing.",
      "riskClass": "read",
      "selector": "#btn-try-sample",
      "action": "click",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "select_pages_for_deletion",
      "description": "Selects or deselects pages for deletion in the loaded PDF document using quick-selection filters.",
      "riskClass": "read",
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "enum": ["all", "clear", "odd", "even", "first", "last"],
            "description": "Selection preset mode to apply"
          }
        },
        "required": ["mode"]
      }
    },
    {
      "name": "toggle_page",
      "description": "Toggles deletion selection for a specific 1-based page number.",
      "riskClass": "read",
      "inputSchema": {
        "type": "object",
        "properties": {
          "pageNumber": {
            "type": "integer",
            "minimum": 1,
            "description": "The 1-based page index to toggle"
          }
        },
        "required": ["pageNumber"]
      }
    },
    {
      "name": "delete_selected_pages",
      "description": "Executes deletion of all selected pages and compiles a new PDF in browser memory.",
      "riskClass": "write",
      "selector": "#btn-delete-pages",
      "action": "click",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "download_pdf",
      "description": "Triggers the browser download of the newly compiled PDF document.",
      "riskClass": "read",
      "selector": "#btn-download-pdf",
      "action": "click",
      "inputSchema": {
        "type": "object",
        "properties": {}
      }
    },
    {
      "name": "navigate_route",
      "description": "Navigates to an informational page on Delete PDF Pages.",
      "riskClass": "read",
      "inputSchema": {
        "type": "object",
        "properties": {
          "path": {
            "type": "string",
            "enum": ["/", "/about", "/contact", "/privacy-policy", "/terms"],
            "description": "Canonical route path to navigate to"
          }
        },
        "required": ["path"]
      }
    }
  ]
}
