# Common argument definitions
_common:
  tabId: &tabId
    name: tabId
    description: The ID of the tab
    required: true
    
  selector: &selector
    name: selector
    description: CSS selector for a specific element
    required: false

prompts:
  list-tabs:
    description: Get a list of all browser tabs connected to Kapture
    arguments: []

  tab-details:
    description: Get detailed information about a specific browser tab
    arguments:
      - <<: *tabId
        description: The ID of the tab to get details for

  navigate-to-url:
    description: Navigate a browser tab to a specific URL
    arguments:
      - <<: *tabId
        description: The ID of the tab to navigate
      - name: url
        description: The URL to navigate to
        required: true

  take-screenshot:
    description: Capture a screenshot of a browser tab or specific element
    arguments:
      - <<: *tabId
        description: The ID of the tab to capture
      - <<: *selector
        description: CSS selector for a specific element (optional, captures full page if not provided)
      - name: scale
        description: "Scale factor for the screenshot (0.1-1.0, default: 0.3)"
        required: false
      - name: format
        description: "Image format: webp, jpeg, or png (default: webp)"
        required: false