Xpersona
T

TextIn xParse Document Parse

CLAWHUB · Unverified

Parse, read, search, navigate, summarize, and extract tables or structured evidence from PDFs, images, Office files, HTML, OFD, and other supported local documents or document URLs through xparse-cli. Use this Skill for single-document conversion, targeted section/page/fact extraction, and durable m

62
Rank
84
Safety
1.6k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.6K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s1742z4nj1gh2e6er3jnae0xxs84eh1v:xparse-parser
  1. Install using `clawhub skill install s1742z4nj1gh2e6er3jnae0xxs84eh1v:xparse-parser` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/intsig-textin/xparse-parser before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-intsig-textin-xparse-parser/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

145,289 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: xparse-parse
description: "Parse, read, search, navigate, summarize, and extract tables or structured evidence from PDFs, images, Office files, HTML, OFD, and other supported local documents or document URLs through xparse-cli. Use this Skill for single-document conversion, targeted section/page/fact extraction, and durable multi-document Task Runtime workflows including status checks, selective reads, exports, debugging, and password-based continuation. Prefer it over raw PDF readers or custom OCR scripts."
---

# xparse-parse

Use the installed `xparse-cli` as the only parsing, authentication, quota, and
document-navigation execution kernel. Do not reproduce its HTTP, OAuth, quota,
PDF splitting, or result-merging logic in the Skill.

## WorkBuddy profile and task context

Inside the TextIn xParse WorkBuddy Connector, prefix every invocation with:

```bash
xparse-cli --profile workbuddy <command> ...
```

The Connector declares a Node.js runtime and installs the pinned CLI with the
standard global npm prefix, so WorkBuddy supplies `xparse-cli` on PATH. On
Windows Connector lifecycle commands use `xparse-cli.cmd`; document-task shell
commands may use the command form supported by the active shell. Outside
WorkBuddy, use `xparse-cli <command> ...`.

For every new WorkBuddy user request, create one private `0600` JSON file before
the first xParse command:

```json
{
  "schema_version": "xparse_task_context.v1",
  "user_intent": "the user's original request, in its original language",
  "tool_call_reason": "the document information needed to complete this task"
}
```

- Preserve the user's wording and keep the operational reason brief.
- Never include hidden reasoning, credentials, document content, or the final answer.
- Pass `--task-context <FILE>` only on the first xParse invocation for that request.
- Delete the temporary file after that invocation. Later commands inherit the task.
- Do not pass inline JSON through shell arguments, `echo`, or a heredoc.

## Command integrity and structured error gate

Run every operational `xparse-cli` invocation as a standalone shell command.
Do not pipe it through `head`, `tail`, `grep`, or another command, and do not
append cleanup, printing, file reads, or other shell commands that can replace
its exit status. Perform task-context cleanup in a separate shell call.

For every failed command, parse the final stderr object whose `schema_version`
is `xparse_error.v1`. Treat that object as failure even if a shell wrapper
reports exit code 0. Apply this gate before issuing another xParse command:

- `retryable=false` means do not retry or reinterpret the same logical action.
  Follow only the declared `next_action`. For `CONTACT_SUPPORT`, report the
  error and preserved identifiers, then issue no more xParse commands for the
  current request.
- `retryable=true` permits at most one Agent-layer retry of the same logical
  action. Keep the same Task, Run, Resource, and `operation_id` where present.
- Cha

_meta.json

{
  "ownerId": "kn75n1e999yz0sgs4htawmv1ds84fj10",
  "slug": "xparse-parser",
  "version": "0.1.4",
  "publishedAt": 1787571665011
}

references/api-reference.md

# API Reference

Based on [Textin Parse API v1](https://docs.textin.com/xparse/v1/).

## Command Syntax

```bash
xparse-cli parse <FILE> [options]
```

## Request Parameters

### Document Options

| Parameter | Type | Description |
|-----------|------|-------------|
| `--password` | string | Encryption password for protected PDFs |
| `--page-range` | string | Pages to process: `1-5` or `1-2,10-15` (optional, default: all) |

### Capabilities (Output Control)

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `--include-hierarchy` | flag | on | Parent-child relationships and element associations |
| `--include-inline-objects` | flag | on | Formulas, handwriting, checkboxes, embedded images |
| `--include-char-details` | flag | off | Character-level coordinates and OCR confidence scores |
| `--include-image-data` | flag | on | Image URLs and Base64 encoding |
| `--include-table-structure` | flag | on | Structured table cell data with coordinates |
| `--include-pages` | flag | on | Per-page metadata and preview images |
| `--include-title-tree` | flag | on | Hierarchical document outline |

### Output Options

| Parameter | Type | Description |
|-----------|------|-------------|
| `--output` | path | Save result to file (instead of printing to stdout) |

## Response: JSON View

### Success Response Structure

```json
{
  "code": 200,
  "message": "success",
  "data": {
    "schema_version": "1.3.0",
    "file_id": "doc_12345",
    "job_id": "job_01HXYZ",
    "success_count": 18,
    "metadata": {
      "file_name": "report.pdf",
      "file_type": "pdf",
      "page_count": 18
    },
    "markdown": "# Document Title\n\n## Section 1\n\nContent...",
    "elements": [
      {
        "type": "Title",
        "level": 1,
        "text": "Document Title",
        "page_number": 1,
        "coordinates": [0.05, 0.08, 0.95, 0.12]
      },
      {
        "type": "NarrativeText",
        "text": "Body text content...",
        "page_number": 2,
        "coordinates": [0.05, 0.15, 0.95, 0.40]
      },
      {
        "type": "Table",
        "page_number": 3,
        "coordinates": [0.05, 0.20, 0.95, 0.50],
        "html": "<table>...</table>"
      },
      {
        "type": "Image",
        "page_number": 4,
        "coordinates": [0.10, 0.30, 0.90, 0.70]
      }
    ],
    "title_tree": [
      {
        "level": 1,
        "text": "Document Title",
        "children": [
          {
            "level": 2,
            "text": "Section 1",
            "children": [
              {
                "level": 3,
                "text": "Subsection 1.1"
              }
            ]
          }
        ]
      }
    ],
    "summary": {
      "duration_ms": 2340
    }
  }
}
```

### Response Fields

#### Top Level
- **code**: HTTP-like status code (200 = success)
- **message**: Status description
- **data**: Parsed results and metadata

#### Metadata
- **schema_version**: API schema version (e.g., "1.3.0")
- **file_id**

references/authentication.md

# Authentication

`xparse-cli` supports three explicit authentication paths while preserving the
legacy AppKey workflow. In an interactive terminal, bare `xparse-cli auth`
opens a menu for OAuth, AppKey, status, and logout. With piped/non-terminal
input it keeps the legacy AppKey prompt contract.

## WorkBuddy

WorkBuddy v5 uses the Connector's native Device Code Flow:

```bash
xparse-cli --profile workbuddy auth device --open-browser=always --output=jsonl
```

The CLI opens `verification_uri_complete` automatically when a desktop browser
is available. WorkBuddy also extracts `verification_uri_complete` and
`user_code`, presents its Device Code Modal as a fallback, and leaves the CLI
process running while the CLI polls the token endpoint. The CLI saves
credentials only after authorization succeeds.

The `workbuddy` profile stores credentials under
`~/.xparse-cli/profiles/workbuddy/`. Login and logout in WorkBuddy therefore do
not affect standalone credentials directly under `~/.xparse-cli`.

WorkBuddy task shells do not inherit Connector lifecycle environment variables.
Every CLI command issued by the installed Skill must therefore include
`--profile workbuddy`. This profile also marks API requests with
`X-From: workbuddy`.

The Skill must not:

- request, store, or repeat an Access Token, Refresh Token, Secret Code, or
  private `device_code`;
- implement its own callback listener, token polling, or HTTP client;
- start browser PKCE as an automatic fallback from Device OAuth;
- open a separate browser PKCE flow while Device OAuth is in progress.

If Connector status is disconnected, ask the user to reconnect it in
WorkBuddy. Do not collect AppKey credentials in the conversation.

## Standalone Device OAuth

Use this in terminals and on servers without a callback listener. Inside the
interactive TTY auth menu, choosing OAuth selects Device OAuth for SSH or a
Linux session without `DISPLAY`/`WAYLAND_DISPLAY`. Non-TTY and CI automation
must call the explicit Device command; bare `auth` intentionally remains the
legacy AppKey input flow:

```bash
# Print URL/code and do not try to open a browser
xparse-cli auth device --open-browser=never

# Open verification_uri_complete when a desktop browser is available
xparse-cli auth device --open-browser=auto
```

`auto` and `never` run the same Device flow. Automatic browser opening is only a
convenience; authorization state remains on the server and the CLI continues
polling.

Client ID resolution is:

1. `--client-id`
2. `XPARSE_OAUTH_CLIENT_ID`
3. `config.yaml` `oauth.client_id`
4. the shipped public xParse client `cli_textin_xparse`

The default client ID is public application identity, not a client secret. A
private deployment may override it with any of the first three options.

Scope resolution is flag, `XPARSE_OAUTH_SCOPE`, YAML, then `ocr:*`.

## Standalone Browser PKCE

Bare `xparse-cli auth` automatically chooses browser PKCE when a local GUI and
platform opener are available. Explicit commands al

references/cli-guidance.md

# CLI Guidance

> Installation and quick start see [SKILL.md](../SKILL.md).

Inside WorkBuddy, insert `--profile workbuddy` immediately after `xparse-cli`
for every command. The Connector uses WorkBuddy's standard global npm runtime,
matching other npm CLI Connectors. Standalone CLI commands remain unchanged.

## Authentication and paid API

```bash
xparse-cli auth                                    # Standalone interactive menu
xparse-cli auth app-key                            # Interactive AppKey setup
xparse-cli auth device                             # Uses the shipped public client
xparse-cli auth browser                            # Uses the shipped public client
xparse-cli auth browser --prompt=consent
```

For non-interactive AppKey automation, set both environment variables:

```bash
export XPARSE_APP_ID=your_app_id
export XPARSE_SECRET_CODE=your_secret_code
```

| `--api` value | Behavior |
|---------------|----------|
| _(omitted)_ | Same as `auto` |
| `auto` | Query current quota, use the daily free allowance first, then an authenticated user's reported free-package allowance when available |
| `free` | Force the free endpoint only |
| `paid` | Explicitly use the paid API; pair with `--auth-method app-key` or `oauth` when both are configured |

AppKey priority: CLI flags → env vars → config file. Normal OAuth login uses
the shipped public client automatically; private deployments may override it
through a CLI flag, `XPARSE_OAUTH_CLIENT_ID`, or the config file.
WorkBuddy keeps its credentials in the isolated `workbuddy` profile and uses
Device OAuth. The current quota service reports `free_package` only for an
AppKey-authenticated request; do not infer package access from Device OAuth.
Automatic package routing uses only `free_package.free_remain_count`; the
historical `free_count` field is display-only.
Login does not authorize an explicit paid parse. Only use `--api paid` after the
user has approved paid service behavior.

See [authentication.md](authentication.md) for all login modes and
[textin-key-setup.md](textin-key-setup.md) for legacy AppKey setup.

## API limits

| Dimension | Free/automatic route | Explicit paid route |
|-----------|----------------------|---------------------|
| File types | PDF and supported images | Office, HTML, OFD, RTF, PDF, images, and other service-supported types |
| Request limits | Read current page and MB limits from `xparse-cli quota --output json`; reduce the file or use an explicit `--page-range` when the structured error requires it | Service/account configuration is authoritative |
| Allowance | Daily free pages, then authenticated free-package pages reported by quota | Existing server package/balance billing behavior |
| Authentication | Anonymous; AppKey identity is used when querying package quota | OAuth Bearer or AppKey + Secret, subject to the selected service route |

> For 40302 (file limit), 40307 (daily quota exhausted), or 40303 (unsupported format), use [error-handling.md](error

Sponsored

Ads related to TextIn xParse Document Parse and adjacent AI workflows.