Check a Word document for schema and content defects without modifying it.
Use describe("docx.validate") when your code needs the complete live JSON Schemas.
At a glance
| Property | Value |
|---|---|
| Package | @runstamp/docx |
| Domain / verb | docx / validate |
| Customer jobs | validate |
| Deterministic | Yes |
| Side effects | none |
Availability
| Local | SDK | CLI | MCP | Managed API |
|---|---|---|---|---|
| public ga | public ga | public ga | public ga | public ga |
Managed API route: POST /api/v2/operations/docx/validate. Managed execution requires a free-trial workspace or an active Platform or Enterprise workspace, and an environment-bound API key.
Input and result
| Schema | Required fields | Optional fields |
|---|---|---|
| Input | none | none |
| Options | none | deterministic, deterministicSeed, timeoutMs, locale, lossPolicy, limits |
| Result value | valid, issues, stats | none |
Every success also carries losses, diagnostics, and a hash-bound receipt.
Defaults, limits, and format constraints
Defaults
| Path | Default |
|---|---|
$.deterministic | default=true |
$.lossPolicy | default="collect" |
Formats and profiles
No separate format selector is declared. Accepted artifacts are bounded by the exact input schema.
Other limits
| Path | Constraint |
|---|---|
$.timeoutMs | minimum=1 |
$.limits.maxInputBytes | minimum=1maximum=9007199254740991 |
$.limits.maxOutputBytes | minimum=1maximum=9007199254740991 |
$.limits.maxPages | minimum=1maximum=9007199254740991 |
$.limits.maxElements | minimum=1maximum=9007199254740991 |
$.limits.maxArchiveEntries | minimum=1maximum=9007199254740991 |
$.limits.maxExpansionRatio | minimum=1 |
$.limits.maxDurationMs | exclusiveMinimum=0maximum=2147483647 |
Invoke
const input = await fetch("https://runstamp.com/demo-evidence/operation-evidence/docx/docx.validate/input.json").then((response) => response.json());
const result = await runstamp.run("docx.validate", input);
if (!result.ok) throw new Error(`${result.error.code}: ${result.error.remediation}`);
console.log(result.value, result.losses, result.diagnostics, result.receipt);curl -fsS https://runstamp.com/demo-evidence/operation-evidence/docx/docx.validate/input.json -o input.json
npx -p @runstamp/sdk runstamp ops invoke docx.validate --input input.json{
"tool": "runstamp_invoke_operation",
"arguments": {
"operation": "docx.validate",
"input": "<JSON from https://runstamp.com/demo-evidence/operation-evidence/docx/docx.validate/input.json>",
"execution_mode": "local"
}
}Errors and losses
Declared errors (7)
common/SCHEMA_REJECTEDcommon/CONTRACT_VIOLATIONcommon/OPERATION_CANCELLEDcommon/OPERATION_TIMEOUTcommon/RESOURCE_LIMIT_EXCEEDEDdocx/DOC_INVALIDdocx/LOSS_POLICY_VIOLATED
Declared losses (0)
- None.
SDK AbortSignal, CLI exit 130, and MCP cancellation return the typed common/OPERATION_CANCELLED failure envelope.
Verified example and exact contract
- Fixture:
icp-workflow(docx-analysis-qbr-saas-q2-fy26.json). - Example input — SHA-256
5106ccd9c5efe61d04607ab64c401d4becf34acceba182893c39f994f0e58a50. - Example result — SHA-256
e64ddd1ee9cfc3d13a38a2462c335178211d865c7c2cd49ccfff14d1c12ef860. - Verified result SHA-256:
5ff88f24df4f020fb2b38099e7a585fb8e24b4b90ad1f7d4476bdf846385bc34. - Qualification lane:
10-pptx-docx.
Contract fingerprints
- Descriptor:
9558255cce97eb3b7707be1a479d0e85eab6a35aaf37bb71e78cbf3a34bf418e. - Input schema:
46c21054f84fa260e47fa034e8840784b9906418d9c3ca6e926b984ec4974ee8. - Options schema:
1f813ee8ff60eec53976a63df5b5268944ac939e3c8c788d218b24b05164e42d. - Result value schema:
2b63a1e8c07b158660c81a5f89c8515b2d5bfb7a181c8e71086b83422ce1c807.
The machine-readable operation reference publishes the complete schemas, qualification results, and evidence bindings for every operation.