Wiktionary · Capability

Wiktionary MediaWiki Action API — Parse

MediaWiki Action API — Parse. 1 operations. Lead operation: Wiktionary Parse Page. Self-contained Naftiko capability covering one Wiktionary business surface.

Run with Naftiko WiktionaryMediaWiki Action APIParse

What You Can Do

GET
Parsepage — Wiktionary Parse Page
/v1/api-php-parse

MCP Tools

parse-page

Wiktionary Parse Page

read-only idempotent

Capability Spec

mediawiki-action-api-parse.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Wiktionary MediaWiki Action API — Parse
  description: 'MediaWiki Action API — Parse. 1 operations. Lead operation: Wiktionary Parse Page. Self-contained Naftiko capability covering one Wiktionary business surface.'
  tags:
  - Wiktionary
  - MediaWiki Action API
  - Parse
  created: '2026-05-30'
  modified: '2026-05-30'
binds:
- namespace: env
  keys:
    WIKTIONARY_MEDIAWIKI_TOKEN: WIKTIONARY_MEDIAWIKI_TOKEN
capability:
  consumes:
  - type: http
    namespace: mediawiki-action-api-parse
    baseUri: https://en.wiktionary.org/w
    description: Wiktionary MediaWiki Action API — Parse business capability. Self-contained, no shared references.
    authentication:
      type: bearer
      token: '{{env.WIKTIONARY_MEDIAWIKI_TOKEN}}'
    resources:
    - name: api-php-parse
      path: /api.php#parse
      operations:
      - name: parsePage
        method: GET
        description: Wiktionary Parse Page
        inputParameters:
        - name: action
          in: query
          type: string
          required: true
          description: Must be `parse`.
        - name: page
          in: query
          type: string
          required: false
          description: Title of the page to parse.
        - name: text
          in: query
          type: string
          required: false
          description: Wikitext to parse instead of an existing page.
        - name: prop
          in: query
          type: string
          required: false
          description: Which parts of the parser output to return.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: mediawiki-action-api-parse-rest
    port: 8080
    description: REST adapter for Wiktionary MediaWiki Action API — Parse. One Spectral-compliant resource per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api-php-parse
      name: api-php-parse
      description: REST surface for Wiktionary Parse Page.
      operations:
      - method: GET
        name: parsePage
        description: Wiktionary Parse Page
        call: mediawiki-action-api-parse.parsePage
        with:
          action: rest.action
          page: rest.page
          text: rest.text
          prop: rest.prop
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: mediawiki-action-api-parse-mcp
    port: 9090
    transport: http
    description: MCP adapter for Wiktionary MediaWiki Action API — Parse. One tool per consumed operation, routed inline through this capability's consumes block.
    tools:
    - name: parse-page
      description: Wiktionary Parse Page
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: mediawiki-action-api-parse.parsePage
      with:
        action: tools.action
        page: tools.page
        text: tools.text
        prop: tools.prop
      outputParameters:
      - type: object
        mapping: $.