Wiktionary · Capability

Wiktionary Wikimedia REST API — Page Content

Wikimedia REST API — Page Content. 4 operations. Lead operation: Wiktionary Get Page Summary. Self-contained Naftiko capability covering one Wiktionary business surface.

Run with Naftiko WiktionaryWikimedia REST APIPage Content

What You Can Do

GET
Getpagesummary — Wiktionary Get Page Summary
/v1/page/summary/{title}
GET
Getpagehtml — Wiktionary Get Page HTML
/v1/page/html/{title}
GET
Getpagetitle — Wiktionary Get Page Title Metadata
/v1/page/title/{title}
GET
Getpagemobilehtml — Wiktionary Get Page Mobile HTML
/v1/page/mobile-html/{title}

MCP Tools

get-page-summary

Wiktionary Get Page Summary

read-only idempotent
get-page-html

Wiktionary Get Page HTML

read-only idempotent
get-page-title

Wiktionary Get Page Title Metadata

read-only idempotent
get-page-mobile-html

Wiktionary Get Page Mobile HTML

read-only idempotent

Capability Spec

rest-api-page-content.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Wiktionary Wikimedia REST API — Page Content
  description: 'Wikimedia REST API — Page Content. 4 operations. Lead operation: Wiktionary Get Page Summary. Self-contained Naftiko capability covering one Wiktionary business surface.'
  tags:
  - Wiktionary
  - Wikimedia REST API
  - Page Content
  created: '2026-05-30'
  modified: '2026-05-30'
binds:
- namespace: env
  keys:
    WIKTIONARY_WIKIMEDIA_TOKEN: WIKTIONARY_WIKIMEDIA_TOKEN
capability:
  consumes:
  - type: http
    namespace: rest-api-page-content
    baseUri: https://en.wiktionary.org/api/rest_v1
    description: Wiktionary Wikimedia REST API — Page Content business capability. Self-contained, no shared references.
    authentication:
      type: bearer
      token: '{{env.WIKTIONARY_WIKIMEDIA_TOKEN}}'
    resources:
    - name: page-summary-title
      path: /page/summary/{title}
      operations:
      - name: getPageSummary
        method: GET
        description: Wiktionary Get Page Summary
        inputParameters:
        - name: title
          in: path
          type: string
          required: true
          description: URL-encoded page title.
        - name: redirect
          in: query
          type: boolean
          required: false
          description: Whether to follow redirects.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: page-html-title
      path: /page/html/{title}
      operations:
      - name: getPageHtml
        method: GET
        description: Wiktionary Get Page HTML
        inputParameters:
        - name: title
          in: path
          type: string
          required: true
          description: URL-encoded page title.
        - name: redirect
          in: query
          type: boolean
          required: false
          description: Whether to follow redirects.
        - name: stash
          in: query
          type: boolean
          required: false
          description: Whether to stash the result for later transform calls.
        - name: Accept-Language
          in: header
          type: string
          required: false
          description: BCP-47 language tag for content-language negotiation.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: page-title-title
      path: /page/title/{title}
      operations:
      - name: getPageTitle
        method: GET
        description: Wiktionary Get Page Title Metadata
        inputParameters:
        - name: title
          in: path
          type: string
          required: true
          description: URL-encoded page title.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: page-mobile-html-title
      path: /page/mobile-html/{title}
      operations:
      - name: getPageMobileHtml
        method: GET
        description: Wiktionary Get Page Mobile HTML
        inputParameters:
        - name: title
          in: path
          type: string
          required: true
          description: URL-encoded page title.
        - name: redirect
          in: query
          type: boolean
          required: false
          description: Whether to follow redirects.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: rest-api-page-content-rest
    port: 8080
    description: REST adapter for Wiktionary Wikimedia REST API — Page Content. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/page/summary/{title}
      name: page-summary-title
      description: REST surface for Wiktionary Get Page Summary.
      operations:
      - method: GET
        name: getPageSummary
        description: Wiktionary Get Page Summary
        call: rest-api-page-content.getPageSummary
        with:
          title: rest.title
          redirect: rest.redirect
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/page/html/{title}
      name: page-html-title
      description: REST surface for Wiktionary Get Page HTML.
      operations:
      - method: GET
        name: getPageHtml
        description: Wiktionary Get Page HTML
        call: rest-api-page-content.getPageHtml
        with:
          title: rest.title
          redirect: rest.redirect
          stash: rest.stash
          Accept-Language: rest.Accept-Language
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/page/title/{title}
      name: page-title-title
      description: REST surface for Wiktionary Get Page Title Metadata.
      operations:
      - method: GET
        name: getPageTitle
        description: Wiktionary Get Page Title Metadata
        call: rest-api-page-content.getPageTitle
        with:
          title: rest.title
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/page/mobile-html/{title}
      name: page-mobile-html-title
      description: REST surface for Wiktionary Get Page Mobile HTML.
      operations:
      - method: GET
        name: getPageMobileHtml
        description: Wiktionary Get Page Mobile HTML
        call: rest-api-page-content.getPageMobileHtml
        with:
          title: rest.title
          redirect: rest.redirect
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-api-page-content-mcp
    port: 9090
    transport: http
    description: MCP adapter for Wiktionary Wikimedia REST API — Page Content. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: get-page-summary
      description: Wiktionary Get Page Summary
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-api-page-content.getPageSummary
      with:
        title: tools.title
        redirect: tools.redirect
      outputParameters:
      - type: object
        mapping: $.
    - name: get-page-html
      description: Wiktionary Get Page HTML
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-api-page-content.getPageHtml
      with:
        title: tools.title
        redirect: tools.redirect
        stash: tools.stash
        Accept-Language: tools.Accept-Language
      outputParameters:
      - type: object
        mapping: $.
    - name: get-page-title
      description: Wiktionary Get Page Title Metadata
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-api-page-content.getPageTitle
      with:
        title: tools.title
      outputParameters:
      - type: object
        mapping: $.
    - name: get-page-mobile-html
      description: Wiktionary Get Page Mobile HTML
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: rest-api-page-content.getPageMobileHtml
      with:
        title: tools.title
        redirect: tools.redirect
      outputParameters:
      - type: object
        mapping: $.