@tiwater/office-mcp 0.21.36 → 0.21.37
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/contracts/docx_set_table.schema.json +21 -28
- package/office/contracts/tiwater-office-provider-contract-manifest-v1.json +3 -3
- package/office/index.mjs +1 -1
- package/package.json +1 -1
- package/pdf/contracts/tiwater-pdf-provider-contract-manifest-v1.json +1 -1
- package/text/contracts/tiwater-text-provider-contract-manifest-v1.json +1 -1
|
@@ -63,36 +63,29 @@
|
|
|
63
63
|
"type": "object", "properties": {
|
|
64
64
|
"columns": { "type": "array", "minItems": 1, "description": "One or more contiguous request-local column IDs occupied by this cell.", "items": { "type": "string", "minLength": 1, "maxLength": 80 } },
|
|
65
65
|
"rowSpan": { "type": "integer", "minimum": 1, "maximum": 2147483647 },
|
|
66
|
-
"text": { "anyOf": [{ "type": "string" }, { "type": "null" }], "description": "Final derived plain text, or null when
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
"type": "
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"start": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
85
|
-
"length": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }
|
|
86
|
-
}, "required": ["start", "length"], "additionalProperties": false
|
|
87
|
-
}
|
|
88
|
-
}, "required": ["address"], "additionalProperties": false
|
|
89
|
-
}
|
|
66
|
+
"text": { "anyOf": [{ "type": "string" }, { "type": "null" }], "description": "Final derived plain text, or null when sourceInput and sourceSelections are used." },
|
|
67
|
+
"sourceInput": { "type": "string", "minLength": 1, "description": "Current source DOCX containing sourceSelections. Omit when text is used.", "x-tiwater-file-role": "read" },
|
|
68
|
+
"sourceSelections": {
|
|
69
|
+
"type": "array", "minItems": 1,
|
|
70
|
+
"description": "Exact ordered native source selections. Omit when text is used.",
|
|
71
|
+
"items": {
|
|
72
|
+
"type": "object", "properties": {
|
|
73
|
+
"address": {
|
|
74
|
+
"type": "object", "properties": {
|
|
75
|
+
"part": { "type": "string", "minLength": 1, "pattern": "^\\/" },
|
|
76
|
+
"path": { "type": "string", "pattern": "^\\/[A-Za-z_][A-Za-z0-9_.-]*:[A-Za-z_][A-Za-z0-9_.-]*\\[[1-9][0-9]*\\](?:\\/[A-Za-z_][A-Za-z0-9_.-]*:[A-Za-z_][A-Za-z0-9_.-]*\\[[1-9][0-9]*\\])*$" }
|
|
77
|
+
}, "required": ["part", "path"], "additionalProperties": false
|
|
78
|
+
},
|
|
79
|
+
"range": {
|
|
80
|
+
"type": "object", "properties": {
|
|
81
|
+
"start": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 },
|
|
82
|
+
"length": { "type": "integer", "minimum": 1, "maximum": 9007199254740991 }
|
|
83
|
+
}, "required": ["start", "length"], "additionalProperties": false
|
|
90
84
|
}
|
|
91
|
-
}, "required": ["
|
|
92
|
-
}
|
|
93
|
-
"description": "Exact ordered native source selections, or null when text is used."
|
|
85
|
+
}, "required": ["address"], "additionalProperties": false
|
|
86
|
+
}
|
|
94
87
|
}
|
|
95
|
-
}, "required": ["columns", "text"
|
|
88
|
+
}, "required": ["columns", "text"], "additionalProperties": false
|
|
96
89
|
}
|
|
97
90
|
},
|
|
98
91
|
"cantSplit": { "type": "boolean" }
|
|
@@ -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.21.
|
|
5
|
+
"version": "0.21.37"
|
|
6
6
|
},
|
|
7
7
|
"tools": [
|
|
8
8
|
{
|
|
@@ -196,11 +196,11 @@
|
|
|
196
196
|
"name": "docx_set_table",
|
|
197
197
|
"providerContract": {
|
|
198
198
|
"source": "packages/docx-cli/contracts/mcp-input/docx_set_table.schema.json",
|
|
199
|
-
"sha256": "
|
|
199
|
+
"sha256": "17c0f3c64fe36bbb3658ee44ce2b505b25241f37d0c08957a8706bd610f8e160"
|
|
200
200
|
},
|
|
201
201
|
"inputContract": {
|
|
202
202
|
"path": "office/contracts/docx_set_table.schema.json",
|
|
203
|
-
"sha256": "
|
|
203
|
+
"sha256": "17c0f3c64fe36bbb3658ee44ce2b505b25241f37d0c08957a8706bd610f8e160"
|
|
204
204
|
}
|
|
205
205
|
},
|
|
206
206
|
{
|
package/office/index.mjs
CHANGED
|
@@ -503,7 +503,7 @@ const tools = [
|
|
|
503
503
|
{
|
|
504
504
|
name: 'docx_set_table',
|
|
505
505
|
effectKind: 'document-mutation',
|
|
506
|
-
description: 'Atomically replace one exact current target-table row range with a fully specified table body. Name every target grid column in native order. Each explicit cell occupies contiguous columns and may span logical rows; covered columns are omitted from following rows. Set each cell from either derived text or exact native
|
|
506
|
+
description: 'Atomically replace one exact current target-table row range with a fully specified table body. Name every target grid column in native order. Each explicit cell occupies contiguous columns and may span logical rows; covered columns are omitted from following rows. Set each cell from either derived text or sourceInput plus exact native sourceSelections, never both. Native source selections retain run formatting such as superscript and subscript. The provider retains the target table, target cell styles, grid widths, and all content outside the replaced range, and exposes no intermediate document. It does not select source rows, map business columns, infer target shape, derive wording, or copy a source table wholesale.',
|
|
507
507
|
inputSchema: inputContract('docx_set_table'),
|
|
508
508
|
outputSchema: fixedEditOutput('docx_set_table'),
|
|
509
509
|
handler: (args, tool) => fixedEdit(tool, args, docxCandidates),
|
package/package.json
CHANGED