@tiwater/office-mcp 0.16.8 → 0.16.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/office/README.md
CHANGED
|
@@ -43,11 +43,6 @@ DOCX mutations accept revision-bound native object references. Physical table,
|
|
|
43
43
|
row, column, paragraph, run, drawing, and body indexes are not public mutation
|
|
44
44
|
addresses.
|
|
45
45
|
|
|
46
|
-
`docx_inspect_tables` preserves the v1 body `Tables` view and additively exposes
|
|
47
|
-
header/footer topology in `StoryTables`. Header/footer tables carry part
|
|
48
|
-
coordinates plus section/reference bindings, and only supported direct-story
|
|
49
|
-
tables expose mutation addresses.
|
|
50
|
-
|
|
51
46
|
The catalog is intentionally open to new generic document capabilities, but a
|
|
52
47
|
specific workflow, template, customer, issue, input document, or model
|
|
53
48
|
difference does not justify a new tool. Add a tool only for a stable technical
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema": "tiwater.office-provider-contract-manifest/v1",
|
|
3
3
|
"provider": {
|
|
4
4
|
"id": "@tiwater/office-mcp",
|
|
5
|
-
"version": "0.16.
|
|
5
|
+
"version": "0.16.9"
|
|
6
6
|
},
|
|
7
7
|
"tools": [
|
|
8
8
|
{
|
|
@@ -82,17 +82,6 @@
|
|
|
82
82
|
"sha256": "ecf528f83a28f2709efb12182dba18f5f4baf065e8442c76ab568ad01465603d"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
{
|
|
86
|
-
"name": "docx_inspect_tables",
|
|
87
|
-
"providerContract": {
|
|
88
|
-
"source": "packages/docx-cli/contracts/mcp-input/docx_inspect_tables.schema.json",
|
|
89
|
-
"sha256": "f14160d7cff99949dd3e14d60a2d532b31f520bfa72327de972c29c15b9817aa"
|
|
90
|
-
},
|
|
91
|
-
"inputContract": {
|
|
92
|
-
"path": "office/contracts/docx_inspect_tables.schema.json",
|
|
93
|
-
"sha256": "f14160d7cff99949dd3e14d60a2d532b31f520bfa72327de972c29c15b9817aa"
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
85
|
{
|
|
97
86
|
"name": "docx_list_objects",
|
|
98
87
|
"providerContract": {
|
package/office/index.mjs
CHANGED
|
@@ -183,14 +183,6 @@ const tools = [
|
|
|
183
183
|
outputSchema: docxInspectionOutput('docx_inspect'),
|
|
184
184
|
handler: docxInspect,
|
|
185
185
|
},
|
|
186
|
-
{
|
|
187
|
-
name: 'docx_inspect_tables',
|
|
188
|
-
description: 'Inspect current DOCX tables. The response returns the revision and a bounded table identity index; the complete table observation remains in the evidence artifact.',
|
|
189
|
-
inputSchema: inputContract('docx_inspect_tables'),
|
|
190
|
-
outputSchema: docxInspectionOutput('docx_inspect_tables'),
|
|
191
|
-
annotations: { readOnlyHint: true, idempotentHint: true },
|
|
192
|
-
handler: docxInspectTables,
|
|
193
|
-
},
|
|
194
186
|
{
|
|
195
187
|
name: 'docx_list_objects',
|
|
196
188
|
description: 'List one small page of revision-bound DOCX object identities for structure discovery, not selection by text. To select a table or row by any descendant cell text, call docx_find_literal with kind table or row instead of listing the document. After selecting a table or row, call docx_read_object once to obtain every descendant ref; do not list its rows and cells separately. Use parentRef only when nearest-child paging itself is the requested observation.',
|
|
@@ -453,18 +445,6 @@ async function docxInspect(args) {
|
|
|
453
445
|
};
|
|
454
446
|
}
|
|
455
447
|
|
|
456
|
-
async function docxInspectTables(args) {
|
|
457
|
-
const input = path.resolve(requireString(args.input, 'input'));
|
|
458
|
-
const result = await runJsonCandidateChain(docxCandidates, ['inspect-tables', input, '--json']);
|
|
459
|
-
return {
|
|
460
|
-
tool: 'docx_inspect_tables',
|
|
461
|
-
runtime: commandRuntime(result),
|
|
462
|
-
source: await fileArtifact(input),
|
|
463
|
-
artifact: await writeJsonArtifact(requireString(args.output, 'output'), result.json),
|
|
464
|
-
...compactDocxTableIndex(result.json),
|
|
465
|
-
};
|
|
466
|
-
}
|
|
467
|
-
|
|
468
448
|
async function docxObservation(tool, args) {
|
|
469
449
|
return withTempJsonFile(args, async requestPath => {
|
|
470
450
|
const result = await runJsonCandidateChain(docxCandidates, [tool, requestPath]);
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"input": {
|
|
6
|
-
"type": "string",
|
|
7
|
-
"minLength": 1,
|
|
8
|
-
"x-tiwater-file-role": "read"
|
|
9
|
-
},
|
|
10
|
-
"output": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"minLength": 1,
|
|
13
|
-
"description": "New JSON artifact path. Existing files are never overwritten.",
|
|
14
|
-
"x-tiwater-file-role": "write"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"required": [
|
|
18
|
-
"input",
|
|
19
|
-
"output"
|
|
20
|
-
],
|
|
21
|
-
"additionalProperties": false
|
|
22
|
-
}
|