@tiwater/office-mcp 0.16.2 → 0.16.4
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/index.mjs
CHANGED
|
@@ -139,14 +139,14 @@ function artifactOutput(tool) {
|
|
|
139
139
|
const tools = [
|
|
140
140
|
{
|
|
141
141
|
name: 'docx_inspect',
|
|
142
|
-
description: 'Write the default single full-document DOCX observation containing body content, structure, placeholders, comments, anchors, tables, fields, flow, fonts, and formatting metrics. Do not also call docx_export_json for the same observation.',
|
|
142
|
+
description: 'Write the default single full-document DOCX observation containing body content, structure, placeholders, comments, anchors, tables, fields, flow, fonts, and formatting metrics. Its tables section includes the current revision and native refs for every observed table, row, cell, paragraph, and run; use those refs directly for mutation instead of listing the same descendants again. Do not also call docx_export_json for the same observation.',
|
|
143
143
|
inputSchema: inputContract('docx_inspect'),
|
|
144
144
|
outputSchema: artifactOutput('docx_inspect'),
|
|
145
145
|
handler: docxInspect,
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
name: 'docx_inspect_tables',
|
|
149
|
-
description: 'Inspect current DOCX tables, cells, merges, paragraphs, runs, and formatting.',
|
|
149
|
+
description: 'Inspect current DOCX tables, cells, merges, paragraphs, runs, and formatting, returning the current revision and native refs for every observed table, row, cell, paragraph, and run. Use those refs directly for mutation instead of listing the same descendants again.',
|
|
150
150
|
inputSchema: inputContract('docx_inspect_tables'),
|
|
151
151
|
outputSchema: artifactOutput('docx_inspect_tables'),
|
|
152
152
|
annotations: { readOnlyHint: true, idempotentHint: true },
|
|
@@ -154,21 +154,21 @@ const tools = [
|
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
name: 'docx_list_objects',
|
|
157
|
-
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.
|
|
157
|
+
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.',
|
|
158
158
|
inputSchema: inputContract('docx_list_objects'),
|
|
159
159
|
annotations: { readOnlyHint: true, idempotentHint: true },
|
|
160
160
|
handler: args => docxObservation('docx_list_objects', args),
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
name: 'docx_find_literal',
|
|
164
|
-
description: 'Find exact current text in one small page of revision-bound native DOCX objects. With kind table or row, matching includes all descendant cell text
|
|
164
|
+
description: 'Find exact current text in one small page of revision-bound native DOCX objects. With kind table or row, matching includes all descendant cell text. After selecting a table or row, call docx_read_object once to obtain every descendant ref; do not list its rows and cells separately.',
|
|
165
165
|
inputSchema: inputContract('docx_find_literal'),
|
|
166
166
|
annotations: { readOnlyHint: true, idempotentHint: true },
|
|
167
167
|
handler: args => docxObservation('docx_find_literal', args),
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
name: 'docx_read_object',
|
|
171
|
-
description: 'Write one selected revision-bound native DOCX object
|
|
171
|
+
description: 'Write one selected revision-bound native DOCX object, its Open XML, and every descendant object ref to a new JSON artifact. One table read provides all row, cell, paragraph, run, text, and drawing refs needed for mutation; do not enumerate those descendants with repeated list calls.',
|
|
172
172
|
inputSchema: inputContract('docx_read_object'),
|
|
173
173
|
outputSchema: artifactOutput('docx_read_object'),
|
|
174
174
|
annotations: { readOnlyHint: true, idempotentHint: true },
|