TechCrunch · Capability

TechCrunch WordPress REST API — Media

TechCrunch WordPress REST API — Media. 2 operations. Lead operation: List Media. Self-contained Naftiko capability covering one Techcrunch business surface.

Run with Naftiko TechcrunchMedia

What You Can Do

GET
Listmedia — List Media
/v1/media
GET
Getmedia — Get Media Item
/v1/media/{id}

MCP Tools

list-media

List Media

read-only idempotent
get-media-item

Get Media Item

read-only idempotent

Capability Spec

wordpress-rest-media.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: TechCrunch WordPress REST API — Media
  description: 'TechCrunch WordPress REST API — Media. 2 operations. Lead operation: List Media. Self-contained Naftiko capability
    covering one Techcrunch business surface.'
  tags:
  - Techcrunch
  - Media
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TECHCRUNCH_API_KEY: TECHCRUNCH_API_KEY
capability:
  consumes:
  - type: http
    namespace: wordpress-rest-media
    baseUri: https://techcrunch.com/wp-json/wp/v2
    description: TechCrunch WordPress REST API — Media business capability. Self-contained, no shared references.
    resources:
    - name: media
      path: /media
      operations:
      - name: listmedia
        method: GET
        description: List Media
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: page
          in: query
          type: integer
        - name: per_page
          in: query
          type: integer
        - name: search
          in: query
          type: string
        - name: media_type
          in: query
          type: string
          description: Limit result set to attachments of a given media type.
        - name: mime_type
          in: query
          type: string
          description: Limit result set to attachments of a given MIME type.
        - name: orderby
          in: query
          type: string
        - name: order
          in: query
          type: string
    - name: media-id
      path: /media/{id}
      operations:
      - name: getmedia
        method: GET
        description: Get Media Item
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: wordpress-rest-media-rest
    port: 8080
    description: REST adapter for TechCrunch WordPress REST API — Media. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/media
      name: media
      description: REST surface for media.
      operations:
      - method: GET
        name: listmedia
        description: List Media
        call: wordpress-rest-media.listmedia
        with:
          page: rest.page
          per_page: rest.per_page
          search: rest.search
          media_type: rest.media_type
          mime_type: rest.mime_type
          orderby: rest.orderby
          order: rest.order
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/media/{id}
      name: media-id
      description: REST surface for media-id.
      operations:
      - method: GET
        name: getmedia
        description: Get Media Item
        call: wordpress-rest-media.getmedia
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: wordpress-rest-media-mcp
    port: 9090
    transport: http
    description: MCP adapter for TechCrunch WordPress REST API — Media. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-media
      description: List Media
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: wordpress-rest-media.listmedia
      with:
        page: tools.page
        per_page: tools.per_page
        search: tools.search
        media_type: tools.media_type
        mime_type: tools.mime_type
        orderby: tools.orderby
        order: tools.order
      outputParameters:
      - type: object
        mapping: $.
    - name: get-media-item
      description: Get Media Item
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: wordpress-rest-media.getmedia
      outputParameters:
      - type: object
        mapping: $.