Wiktionary · Capability

Wiktionary MediaWiki Core REST API — Page

MediaWiki Core REST API — Page. 3 operations. Lead operation: Wiktionary Get Page. Self-contained Naftiko capability covering one Wiktionary business surface.

Run with Naftiko WiktionaryMediaWiki Core REST APIPage

What You Can Do

GET
Getpage — Wiktionary Get Page
/v1/page/{title}
GET
Getpagehtml — Wiktionary Get Page HTML
/v1/page/{title}/html
GET
Getpagewithhtml — Wiktionary Get Page with HTML
/v1/page/{title}/with-html

MCP Tools

get-page

Wiktionary Get Page

read-only idempotent
get-page-html

Wiktionary Get Page HTML

read-only idempotent
get-page-html-2

Wiktionary Get Page with HTML

read-only idempotent

Capability Spec

core-rest-api-page.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Wiktionary MediaWiki Core REST API — Page
  description: 'MediaWiki Core REST API — Page. 3 operations. Lead operation: Wiktionary Get Page. Self-contained Naftiko capability covering one Wiktionary business surface.'
  tags:
  - Wiktionary
  - MediaWiki Core REST API
  - Page
  created: '2026-05-30'
  modified: '2026-05-30'
binds:
- namespace: env
  keys:
    WIKTIONARY_MEDIAWIKI_CORE_TOKEN: WIKTIONARY_MEDIAWIKI_CORE_TOKEN
capability:
  consumes:
  - type: http
    namespace: core-rest-api-page
    baseUri: https://en.wiktionary.org/w/rest.php
    description: Wiktionary MediaWiki Core REST API — Page business capability. Self-contained, no shared references.
    authentication:
      type: bearer
      token: '{{env.WIKTIONARY_MEDIAWIKI_CORE_TOKEN}}'
    resources:
    - name: v1-page-title
      path: /v1/page/{title}
      operations:
      - name: getPage
        method: GET
        description: Wiktionary Get Page
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-page-title-html
      path: /v1/page/{title}/html
      operations:
      - name: getPageHtml
        method: GET
        description: Wiktionary Get Page HTML
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v1-page-title-with-html
      path: /v1/page/{title}/with_html
      operations:
      - name: getPageWithHtml
        method: GET
        description: Wiktionary Get Page with HTML
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: core-rest-api-page-rest
    port: 8080
    description: REST adapter for Wiktionary MediaWiki Core REST API — Page. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/page/{title}
      name: v1-page-title
      description: REST surface for Wiktionary Get Page.
      operations:
      - method: GET
        name: getPage
        description: Wiktionary Get Page
        call: core-rest-api-page.getPage
        with: {}
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/page/{title}/html
      name: v1-page-title-html
      description: REST surface for Wiktionary Get Page HTML.
      operations:
      - method: GET
        name: getPageHtml
        description: Wiktionary Get Page HTML
        call: core-rest-api-page.getPageHtml
        with: {}
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/page/{title}/with-html
      name: v1-page-title-with-html
      description: REST surface for Wiktionary Get Page with HTML.
      operations:
      - method: GET
        name: getPageWithHtml
        description: Wiktionary Get Page with HTML
        call: core-rest-api-page.getPageWithHtml
        with: {}
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: core-rest-api-page-mcp
    port: 9090
    transport: http
    description: MCP adapter for Wiktionary MediaWiki Core REST API — Page. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: get-page
      description: Wiktionary Get Page
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: core-rest-api-page.getPage
      with: {}
      outputParameters:
      - type: object
        mapping: $.
    - name: get-page-html
      description: Wiktionary Get Page HTML
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: core-rest-api-page.getPageHtml
      with: {}
      outputParameters:
      - type: object
        mapping: $.
    - name: get-page-html-2
      description: Wiktionary Get Page with HTML
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: core-rest-api-page.getPageWithHtml
      with: {}
      outputParameters:
      - type: object
        mapping: $.