4chan · Capability

4chan Read-Only JSON API — Threads

Boards — Threads. 1 operation. Lead operation: 4chan Get Thread. Self-contained Naftiko capability covering one 4chan business surface.

Run with Naftiko 4chanImageboardThreads

What You Can Do

GET
Getthread — 4chan Get Thread
/v1/boards/{board}/threads/{thread}

MCP Tools

get-thread

4chan Get Thread

read-only idempotent

Capability Spec

4chan-api-threads.yaml Raw ↑
naftiko: "1.0.0-alpha2"

info:
  label: "4chan Read-Only JSON API — Threads"
  description: >-
    Boards — Threads. 1 operation. Lead operation: 4chan Get Thread.
    Self-contained Naftiko capability covering one 4chan business surface.
  tags:
    - 4chan
    - Imageboard
    - Threads
  created: "2026-05-28"
  modified: "2026-05-28"

binds: []

capability:

  consumes:
    - type: http
      namespace: 4chan-api-threads
      baseUri: https://a.4cdn.org
      description: "4chan Read-Only JSON API — Threads business capability. Self-contained, no shared references."
      resources:
        - name: board-thread-json
          path: /{board}/thread/{thread}.json
          operations:
            - name: getthread
              method: GET
              description: 4chan Get Thread
              inputParameters:
                - name: board
                  in: path
                  type: string
                  required: true
                  description: Board directory short name.
                - name: thread
                  in: path
                  type: integer
                  required: true
                  description: OP number of the thread to retrieve.
              outputRawFormat: json
              outputParameters:
                - name: result
                  type: object
                  value: "$."

  exposes:
    - type: rest
      namespace: 4chan-api-threads-rest
      port: 8080
      description: "REST adapter for 4chan Read-Only JSON API — Threads."
      resources:
        - path: /v1/boards/{board}/threads/{thread}
          name: board-thread
          description: REST surface for a single 4chan thread (OP plus replies).
          operations:
            - method: GET
              name: getthread
              description: 4chan Get Thread
              call: "4chan-api-threads.getthread"
              with:
                board: "rest.board"
                thread: "rest.thread"
              outputParameters:
                - type: object
                  mapping: "$."

    - type: mcp
      namespace: 4chan-api-threads-mcp
      port: 9090
      transport: http
      description: "MCP adapter for 4chan Read-Only JSON API — Threads."
      tools:
        - name: get-thread
          description: 4chan Get Thread
          hints:
            readOnly: true
            destructive: false
            idempotent: true
          call: "4chan-api-threads.getthread"
          with:
            board: "tools.board"
            thread: "tools.thread"
          outputParameters:
            - type: object
              mapping: "$."