Scrapfly · Capability

Scrapfly Scrape API — Screenshots

Scrapfly Scrape API — Screenshots. 1 operations. Lead operation: Capture Screenshot. Self-contained Naftiko capability covering one Scrapfly business surface.

Run with Naftiko ScrapflyScreenshots

What You Can Do

GET
Capturescreenshot — Capture Screenshot
/v1/screenshot

MCP Tools

capture-screenshot

Capture Screenshot

read-only idempotent

Capability Spec

scrape-screenshots.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Scrapfly Scrape API — Screenshots
  description: 'Scrapfly Scrape API — Screenshots. 1 operations. Lead operation: Capture Screenshot. Self-contained Naftiko
    capability covering one Scrapfly business surface.'
  tags:
  - Scrapfly
  - Screenshots
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SCRAPFLY_API_KEY: SCRAPFLY_API_KEY
capability:
  consumes:
  - type: http
    namespace: scrape-screenshots
    baseUri: https://api.scrapfly.io
    description: Scrapfly Scrape API — Screenshots business capability. Self-contained, no shared references.
    resources:
    - name: screenshot
      path: /screenshot
      operations:
      - name: capturescreenshot
        method: GET
        description: Capture Screenshot
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: key
          in: query
          type: string
          description: API key for authentication
          required: true
        - name: url
          in: query
          type: string
          description: Target URL to screenshot (URL encoded)
          required: true
        - name: capture
          in: query
          type: string
          description: 'What to capture: ''fullpage'' for entire page, or a CSS selector for a specific element'
        - name: resolution
          in: query
          type: string
          description: Screen resolution (e.g., 1920x1080)
        - name: format
          in: query
          type: string
          description: Image format
        - name: rendering_wait
          in: query
          type: integer
          description: Delay in milliseconds after page load before capturing
        - name: country
          in: query
          type: string
          description: Proxy country for geo-specific screenshots
    authentication:
      type: apikey
      key: key
      value: '{{env.SCRAPFLY_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: scrape-screenshots-rest
    port: 8080
    description: REST adapter for Scrapfly Scrape API — Screenshots. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/screenshot
      name: screenshot
      description: REST surface for screenshot.
      operations:
      - method: GET
        name: capturescreenshot
        description: Capture Screenshot
        call: scrape-screenshots.capturescreenshot
        with:
          key: rest.key
          url: rest.url
          capture: rest.capture
          resolution: rest.resolution
          format: rest.format
          rendering_wait: rest.rendering_wait
          country: rest.country
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: scrape-screenshots-mcp
    port: 9090
    transport: http
    description: MCP adapter for Scrapfly Scrape API — Screenshots. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: capture-screenshot
      description: Capture Screenshot
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: scrape-screenshots.capturescreenshot
      with:
        key: tools.key
        url: tools.url
        capture: tools.capture
        resolution: tools.resolution
        format: tools.format
        rendering_wait: tools.rendering_wait
        country: tools.country
      outputParameters:
      - type: object
        mapping: $.