@jezweb/mcp-integrations 0.1.1 → 0.1.2
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/README.md +10 -3
- package/dist/australia/business/clients/abr.d.ts +45 -0
- package/dist/australia/business/clients/abr.d.ts.map +1 -0
- package/dist/australia/business/clients/abr.js +167 -0
- package/dist/australia/business/clients/abr.js.map +1 -0
- package/dist/australia/business/clients/asic.d.ts +46 -0
- package/dist/australia/business/clients/asic.d.ts.map +1 -0
- package/dist/australia/business/clients/asic.js +128 -0
- package/dist/australia/business/clients/asic.js.map +1 -0
- package/dist/australia/business/index.d.ts +19 -0
- package/dist/australia/business/index.d.ts.map +1 -0
- package/dist/australia/business/index.js +14 -0
- package/dist/australia/business/index.js.map +1 -0
- package/dist/australia/business/tools/index.d.ts +29 -0
- package/dist/australia/business/tools/index.d.ts.map +1 -0
- package/dist/australia/business/tools/index.js +174 -0
- package/dist/australia/business/tools/index.js.map +1 -0
- package/dist/australia/datetime/clients/holidays.d.ts +85 -0
- package/dist/australia/datetime/clients/holidays.d.ts.map +1 -0
- package/dist/australia/datetime/clients/holidays.js +93 -0
- package/dist/australia/datetime/clients/holidays.js.map +1 -0
- package/dist/australia/datetime/index.d.ts +22 -0
- package/dist/australia/datetime/index.d.ts.map +1 -0
- package/dist/australia/datetime/index.js +14 -0
- package/dist/australia/datetime/index.js.map +1 -0
- package/dist/australia/datetime/tools/index.d.ts +55 -0
- package/dist/australia/datetime/tools/index.d.ts.map +1 -0
- package/dist/australia/datetime/tools/index.js +439 -0
- package/dist/australia/datetime/tools/index.js.map +1 -0
- package/dist/australia/index.d.ts +47 -0
- package/dist/australia/index.d.ts.map +1 -0
- package/dist/australia/index.js +29 -0
- package/dist/australia/index.js.map +1 -0
- package/dist/australia/ip/api-client.d.ts +130 -0
- package/dist/australia/ip/api-client.d.ts.map +1 -0
- package/dist/australia/ip/api-client.js +151 -0
- package/dist/australia/ip/api-client.js.map +1 -0
- package/dist/australia/ip/index.d.ts +19 -0
- package/dist/australia/ip/index.d.ts.map +1 -0
- package/dist/australia/ip/index.js +13 -0
- package/dist/australia/ip/index.js.map +1 -0
- package/dist/australia/ip/tools/index.d.ts +24 -0
- package/dist/australia/ip/tools/index.d.ts.map +1 -0
- package/dist/australia/ip/tools/index.js +279 -0
- package/dist/australia/ip/tools/index.js.map +1 -0
- package/dist/google/calendar/prompts.js +2 -2
- package/dist/google/calendar/prompts.js.map +1 -1
- package/dist/google/calendar/resources.js +1 -1
- package/dist/google/calendar/resources.js.map +1 -1
- package/dist/google/calendar/tools/calendars.js +1 -1
- package/dist/google/calendar/tools/calendars.js.map +1 -1
- package/dist/google/calendar/tools/events.d.ts.map +1 -1
- package/dist/google/calendar/tools/events.js +6 -5
- package/dist/google/calendar/tools/events.js.map +1 -1
- package/dist/google/chat/index.d.ts +46 -0
- package/dist/google/chat/index.d.ts.map +1 -0
- package/dist/google/chat/index.js +56 -0
- package/dist/google/chat/index.js.map +1 -0
- package/dist/google/chat/prompts.d.ts +71 -0
- package/dist/google/chat/prompts.d.ts.map +1 -0
- package/dist/google/chat/prompts.js +142 -0
- package/dist/google/chat/prompts.js.map +1 -0
- package/dist/google/chat/resources.d.ts +47 -0
- package/dist/google/chat/resources.d.ts.map +1 -0
- package/dist/google/chat/resources.js +95 -0
- package/dist/google/chat/resources.js.map +1 -0
- package/dist/google/chat/tools/index.d.ts +1122 -0
- package/dist/google/chat/tools/index.d.ts.map +1 -0
- package/dist/google/chat/tools/index.js +99 -0
- package/dist/google/chat/tools/index.js.map +1 -0
- package/dist/google/chat/tools/members.d.ts +50 -0
- package/dist/google/chat/tools/members.d.ts.map +1 -0
- package/dist/google/chat/tools/members.js +155 -0
- package/dist/google/chat/tools/members.js.map +1 -0
- package/dist/google/chat/tools/messages.d.ts +180 -0
- package/dist/google/chat/tools/messages.d.ts.map +1 -0
- package/dist/google/chat/tools/messages.js +340 -0
- package/dist/google/chat/tools/messages.js.map +1 -0
- package/dist/google/chat/tools/spaces.d.ts +51 -0
- package/dist/google/chat/tools/spaces.d.ts.map +1 -0
- package/dist/google/chat/tools/spaces.js +174 -0
- package/dist/google/chat/tools/spaces.js.map +1 -0
- package/dist/google/contacts/index.d.ts +27 -0
- package/dist/google/contacts/index.d.ts.map +1 -0
- package/dist/google/contacts/index.js +30 -0
- package/dist/google/contacts/index.js.map +1 -0
- package/dist/google/contacts/prompts.d.ts +71 -0
- package/dist/google/contacts/prompts.d.ts.map +1 -0
- package/dist/google/contacts/prompts.js +129 -0
- package/dist/google/contacts/prompts.js.map +1 -0
- package/dist/google/contacts/resources.d.ts +47 -0
- package/dist/google/contacts/resources.d.ts.map +1 -0
- package/dist/google/contacts/resources.js +128 -0
- package/dist/google/contacts/resources.js.map +1 -0
- package/dist/google/contacts/tools/contacts.d.ts +154 -0
- package/dist/google/contacts/tools/contacts.d.ts.map +1 -0
- package/dist/google/contacts/tools/contacts.js +416 -0
- package/dist/google/contacts/tools/contacts.js.map +1 -0
- package/dist/google/contacts/tools/index.d.ts +524 -0
- package/dist/google/contacts/tools/index.d.ts.map +1 -0
- package/dist/google/contacts/tools/index.js +63 -0
- package/dist/google/contacts/tools/index.js.map +1 -0
- package/dist/google/docs/index.d.ts +43 -0
- package/dist/google/docs/index.d.ts.map +1 -0
- package/dist/google/docs/index.js +51 -0
- package/dist/google/docs/index.js.map +1 -0
- package/dist/google/docs/prompts.d.ts +71 -0
- package/dist/google/docs/prompts.d.ts.map +1 -0
- package/dist/google/docs/prompts.js +154 -0
- package/dist/google/docs/prompts.js.map +1 -0
- package/dist/google/docs/resources.d.ts +48 -0
- package/dist/google/docs/resources.d.ts.map +1 -0
- package/dist/google/docs/resources.js +111 -0
- package/dist/google/docs/resources.js.map +1 -0
- package/dist/google/docs/tools/index.d.ts +738 -0
- package/dist/google/docs/tools/index.d.ts.map +1 -0
- package/dist/google/docs/tools/index.js +80 -0
- package/dist/google/docs/tools/index.js.map +1 -0
- package/dist/google/docs/tools/read.d.ts +47 -0
- package/dist/google/docs/tools/read.d.ts.map +1 -0
- package/dist/google/docs/tools/read.js +255 -0
- package/dist/google/docs/tools/read.js.map +1 -0
- package/dist/google/docs/tools/write.d.ts +182 -0
- package/dist/google/docs/tools/write.d.ts.map +1 -0
- package/dist/google/docs/tools/write.js +670 -0
- package/dist/google/docs/tools/write.js.map +1 -0
- package/dist/google/drive/index.d.ts +30 -0
- package/dist/google/drive/index.d.ts.map +1 -0
- package/dist/google/drive/index.js +42 -0
- package/dist/google/drive/index.js.map +1 -0
- package/dist/google/drive/prompts.d.ts +115 -0
- package/dist/google/drive/prompts.d.ts.map +1 -0
- package/dist/google/drive/prompts.js +193 -0
- package/dist/google/drive/prompts.js.map +1 -0
- package/dist/google/drive/resources.d.ts +48 -0
- package/dist/google/drive/resources.d.ts.map +1 -0
- package/dist/google/drive/resources.js +106 -0
- package/dist/google/drive/resources.js.map +1 -0
- package/dist/google/drive/tools/files.d.ts +142 -0
- package/dist/google/drive/tools/files.d.ts.map +1 -0
- package/dist/google/drive/tools/files.js +461 -0
- package/dist/google/drive/tools/files.js.map +1 -0
- package/dist/google/drive/tools/folders.d.ts +69 -0
- package/dist/google/drive/tools/folders.d.ts.map +1 -0
- package/dist/google/drive/tools/folders.js +217 -0
- package/dist/google/drive/tools/folders.js.map +1 -0
- package/dist/google/drive/tools/index.d.ts +1002 -0
- package/dist/google/drive/tools/index.d.ts.map +1 -0
- package/dist/google/drive/tools/index.js +97 -0
- package/dist/google/drive/tools/index.js.map +1 -0
- package/dist/google/drive/tools/sharing.d.ts +142 -0
- package/dist/google/drive/tools/sharing.d.ts.map +1 -0
- package/dist/google/drive/tools/sharing.js +304 -0
- package/dist/google/drive/tools/sharing.js.map +1 -0
- package/dist/google/gmail/index.d.ts +30 -0
- package/dist/google/gmail/index.d.ts.map +1 -0
- package/dist/google/gmail/index.js +44 -0
- package/dist/google/gmail/index.js.map +1 -0
- package/dist/google/gmail/prompts.d.ts +121 -0
- package/dist/google/gmail/prompts.d.ts.map +1 -0
- package/dist/google/gmail/prompts.js +179 -0
- package/dist/google/gmail/prompts.js.map +1 -0
- package/dist/google/gmail/resources.d.ts +13 -0
- package/dist/google/gmail/resources.d.ts.map +1 -0
- package/dist/google/gmail/resources.js +99 -0
- package/dist/google/gmail/resources.js.map +1 -0
- package/dist/google/gmail/tools/drafts.d.ts +101 -0
- package/dist/google/gmail/tools/drafts.d.ts.map +1 -0
- package/dist/google/gmail/tools/drafts.js +256 -0
- package/dist/google/gmail/tools/drafts.js.map +1 -0
- package/dist/google/gmail/tools/index.d.ts +732 -0
- package/dist/google/gmail/tools/index.d.ts.map +1 -0
- package/dist/google/gmail/tools/index.js +96 -0
- package/dist/google/gmail/tools/index.js.map +1 -0
- package/dist/google/gmail/tools/labels.d.ts +82 -0
- package/dist/google/gmail/tools/labels.d.ts.map +1 -0
- package/dist/google/gmail/tools/labels.js +213 -0
- package/dist/google/gmail/tools/labels.js.map +1 -0
- package/dist/google/gmail/tools/messages.d.ts +107 -0
- package/dist/google/gmail/tools/messages.d.ts.map +1 -0
- package/dist/google/gmail/tools/messages.js +327 -0
- package/dist/google/gmail/tools/messages.js.map +1 -0
- package/dist/google/gmail/tools/profile.d.ts +9 -0
- package/dist/google/gmail/tools/profile.d.ts.map +1 -0
- package/dist/google/gmail/tools/profile.js +31 -0
- package/dist/google/gmail/tools/profile.js.map +1 -0
- package/dist/google/gmail/tools/threads.d.ts +73 -0
- package/dist/google/gmail/tools/threads.d.ts.map +1 -0
- package/dist/google/gmail/tools/threads.js +254 -0
- package/dist/google/gmail/tools/threads.js.map +1 -0
- package/dist/google/index.d.ts +29 -1
- package/dist/google/index.d.ts.map +1 -1
- package/dist/google/index.js +29 -1
- package/dist/google/index.js.map +1 -1
- package/dist/google/sheets/index.d.ts +43 -0
- package/dist/google/sheets/index.d.ts.map +1 -0
- package/dist/google/sheets/index.js +53 -0
- package/dist/google/sheets/index.js.map +1 -0
- package/dist/google/sheets/prompts.d.ts +71 -0
- package/dist/google/sheets/prompts.d.ts.map +1 -0
- package/dist/google/sheets/prompts.js +171 -0
- package/dist/google/sheets/prompts.js.map +1 -0
- package/dist/google/sheets/resources.d.ts +49 -0
- package/dist/google/sheets/resources.d.ts.map +1 -0
- package/dist/google/sheets/resources.js +113 -0
- package/dist/google/sheets/resources.js.map +1 -0
- package/dist/google/sheets/tools/index.d.ts +1021 -0
- package/dist/google/sheets/tools/index.d.ts.map +1 -0
- package/dist/google/sheets/tools/index.js +99 -0
- package/dist/google/sheets/tools/index.js.map +1 -0
- package/dist/google/sheets/tools/manage.d.ts +104 -0
- package/dist/google/sheets/tools/manage.d.ts.map +1 -0
- package/dist/google/sheets/tools/manage.js +255 -0
- package/dist/google/sheets/tools/manage.js.map +1 -0
- package/dist/google/sheets/tools/read.d.ts +84 -0
- package/dist/google/sheets/tools/read.d.ts.map +1 -0
- package/dist/google/sheets/tools/read.js +204 -0
- package/dist/google/sheets/tools/read.js.map +1 -0
- package/dist/google/sheets/tools/write.d.ts +109 -0
- package/dist/google/sheets/tools/write.d.ts.map +1 -0
- package/dist/google/sheets/tools/write.js +205 -0
- package/dist/google/sheets/tools/write.js.map +1 -0
- package/dist/google/tasks/index.d.ts +28 -0
- package/dist/google/tasks/index.d.ts.map +1 -0
- package/dist/google/tasks/index.js +35 -0
- package/dist/google/tasks/index.js.map +1 -0
- package/dist/google/tasks/prompts.d.ts +71 -0
- package/dist/google/tasks/prompts.d.ts.map +1 -0
- package/dist/google/tasks/prompts.js +140 -0
- package/dist/google/tasks/prompts.js.map +1 -0
- package/dist/google/tasks/resources.d.ts +47 -0
- package/dist/google/tasks/resources.d.ts.map +1 -0
- package/dist/google/tasks/resources.js +128 -0
- package/dist/google/tasks/resources.js.map +1 -0
- package/dist/google/tasks/tools/index.d.ts +609 -0
- package/dist/google/tasks/tools/index.d.ts.map +1 -0
- package/dist/google/tasks/tools/index.js +95 -0
- package/dist/google/tasks/tools/index.js.map +1 -0
- package/dist/google/tasks/tools/lists.d.ts +61 -0
- package/dist/google/tasks/tools/lists.d.ts.map +1 -0
- package/dist/google/tasks/tools/lists.js +146 -0
- package/dist/google/tasks/tools/lists.js.map +1 -0
- package/dist/google/tasks/tools/tasks.d.ts +164 -0
- package/dist/google/tasks/tools/tasks.d.ts.map +1 -0
- package/dist/google/tasks/tools/tasks.js +368 -0
- package/dist/google/tasks/tools/tasks.js.map +1 -0
- package/dist/helpers.d.ts +35 -0
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +42 -0
- package/dist/helpers.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +13 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +19 -18
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/google/docs/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAGnE,OAAO,EACL,cAAc,EACd,UAAU,EACV,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,SAAS,CAAC;AAejB;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAef,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAqH,CAAC;AAEhJ;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA8C,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAM,CAAC;AAE9B;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA2E,CAAC;AAEtG;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA0D,CAAC;AAEpF;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAA0C,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Docs Tools
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
* ```typescript
|
|
6
|
+
* import { tools } from '@jezweb/mcp-integrations/google/docs';
|
|
7
|
+
*
|
|
8
|
+
* // Register all tools
|
|
9
|
+
* tools.all.forEach(tool => {
|
|
10
|
+
* server.tool(tool.name, tool.description, tool.parameters,
|
|
11
|
+
* (params) => tool.handler(params, ctx)
|
|
12
|
+
* );
|
|
13
|
+
* });
|
|
14
|
+
*
|
|
15
|
+
* // Or use presets
|
|
16
|
+
* tools.readOnly.forEach(tool => { ... }); // Read operations only
|
|
17
|
+
* tools.fullAccess.forEach(tool => { ... }); // All operations
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
// Read operations
|
|
21
|
+
export { readDocument, getDocument, searchDocument } from './read';
|
|
22
|
+
// Write operations
|
|
23
|
+
export { createDocument, insertText, appendContent, replaceText, deleteContent, updateTextStyle, updateParagraphStyle, createDocumentFromMarkdown, createDocumentFromTemplate, } from './write';
|
|
24
|
+
import { readDocument, getDocument, searchDocument } from './read';
|
|
25
|
+
import { createDocument, insertText, appendContent, replaceText, deleteContent, updateTextStyle, updateParagraphStyle, createDocumentFromMarkdown, createDocumentFromTemplate, } from './write';
|
|
26
|
+
/**
|
|
27
|
+
* All Docs tools (12 tools)
|
|
28
|
+
*/
|
|
29
|
+
export const all = [
|
|
30
|
+
// Read (3)
|
|
31
|
+
readDocument,
|
|
32
|
+
getDocument,
|
|
33
|
+
searchDocument,
|
|
34
|
+
// Write (9)
|
|
35
|
+
createDocument,
|
|
36
|
+
createDocumentFromMarkdown,
|
|
37
|
+
createDocumentFromTemplate,
|
|
38
|
+
insertText,
|
|
39
|
+
appendContent,
|
|
40
|
+
replaceText,
|
|
41
|
+
deleteContent,
|
|
42
|
+
updateTextStyle,
|
|
43
|
+
updateParagraphStyle,
|
|
44
|
+
];
|
|
45
|
+
/**
|
|
46
|
+
* Tools that should always be visible in tool lists
|
|
47
|
+
*/
|
|
48
|
+
export const alwaysVisible = [readDocument, getDocument, createDocument, createDocumentFromMarkdown, createDocumentFromTemplate, appendContent];
|
|
49
|
+
/**
|
|
50
|
+
* Read-only tools (no modifications)
|
|
51
|
+
*/
|
|
52
|
+
export const readOnly = [readDocument, getDocument, searchDocument];
|
|
53
|
+
/**
|
|
54
|
+
* Full access tools (all operations)
|
|
55
|
+
*/
|
|
56
|
+
export const fullAccess = all;
|
|
57
|
+
/**
|
|
58
|
+
* Tools that create new items
|
|
59
|
+
*/
|
|
60
|
+
export const createCapable = [createDocument, createDocumentFromMarkdown, createDocumentFromTemplate];
|
|
61
|
+
/**
|
|
62
|
+
* Tools that modify existing content
|
|
63
|
+
*/
|
|
64
|
+
export const modifyCapable = [
|
|
65
|
+
insertText,
|
|
66
|
+
appendContent,
|
|
67
|
+
replaceText,
|
|
68
|
+
deleteContent,
|
|
69
|
+
updateTextStyle,
|
|
70
|
+
updateParagraphStyle,
|
|
71
|
+
];
|
|
72
|
+
/**
|
|
73
|
+
* Content manipulation tools (insert, append, delete, replace)
|
|
74
|
+
*/
|
|
75
|
+
export const contentTools = [insertText, appendContent, replaceText, deleteContent];
|
|
76
|
+
/**
|
|
77
|
+
* Formatting tools (text and paragraph styles)
|
|
78
|
+
*/
|
|
79
|
+
export const formattingTools = [updateTextStyle, updateParagraphStyle];
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/google/docs/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,kBAAkB;AAClB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAEnE,mBAAmB;AACnB,OAAO,EACL,cAAc,EACd,UAAU,EACV,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACnE,OAAO,EACL,cAAc,EACd,UAAU,EACV,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,EACf,oBAAoB,EACpB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG;IACjB,WAAW;IACX,YAAY;IACZ,WAAW;IACX,cAAc;IACd,YAAY;IACZ,cAAc;IACd,0BAA0B;IAC1B,0BAA0B;IAC1B,UAAU;IACV,aAAa;IACb,WAAW;IACX,aAAa;IACb,eAAe;IACf,oBAAoB;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,aAAa,CAAC,CAAC;AAEhJ;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,cAAc,CAAC,CAAC;AAEpE;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC;AAE9B;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,cAAc,EAAE,0BAA0B,EAAE,0BAA0B,CAAC,CAAC;AAEtG;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,UAAU;IACV,aAAa;IACb,WAAW;IACX,aAAa;IACb,eAAe;IACf,oBAAoB;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,UAAU,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,CAAC,CAAC;AAEpF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,eAAe,EAAE,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Docs Read Tools
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
/**
|
|
6
|
+
* Read document as plain text
|
|
7
|
+
*/
|
|
8
|
+
export declare const readDocument: import("../../..").ToolDefinition<z.ZodObject<{
|
|
9
|
+
documentId: z.ZodString;
|
|
10
|
+
includeHeadings: z.ZodDefault<z.ZodBoolean>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
documentId: string;
|
|
13
|
+
includeHeadings: boolean;
|
|
14
|
+
}, {
|
|
15
|
+
documentId: string;
|
|
16
|
+
includeHeadings?: boolean | undefined;
|
|
17
|
+
}>>;
|
|
18
|
+
/**
|
|
19
|
+
* Get full document structure
|
|
20
|
+
*/
|
|
21
|
+
export declare const getDocument: import("../../..").ToolDefinition<z.ZodObject<{
|
|
22
|
+
documentId: z.ZodString;
|
|
23
|
+
suggestionsViewMode: z.ZodDefault<z.ZodEnum<["DEFAULT_FOR_CURRENT_ACCESS", "SUGGESTIONS_INLINE", "PREVIEW_SUGGESTIONS_ACCEPTED", "PREVIEW_WITHOUT_SUGGESTIONS"]>>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
documentId: string;
|
|
26
|
+
suggestionsViewMode: "DEFAULT_FOR_CURRENT_ACCESS" | "SUGGESTIONS_INLINE" | "PREVIEW_SUGGESTIONS_ACCEPTED" | "PREVIEW_WITHOUT_SUGGESTIONS";
|
|
27
|
+
}, {
|
|
28
|
+
documentId: string;
|
|
29
|
+
suggestionsViewMode?: "DEFAULT_FOR_CURRENT_ACCESS" | "SUGGESTIONS_INLINE" | "PREVIEW_SUGGESTIONS_ACCEPTED" | "PREVIEW_WITHOUT_SUGGESTIONS" | undefined;
|
|
30
|
+
}>>;
|
|
31
|
+
/**
|
|
32
|
+
* Search within document
|
|
33
|
+
*/
|
|
34
|
+
export declare const searchDocument: import("../../..").ToolDefinition<z.ZodObject<{
|
|
35
|
+
documentId: z.ZodString;
|
|
36
|
+
searchText: z.ZodString;
|
|
37
|
+
contextLines: z.ZodDefault<z.ZodNumber>;
|
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
documentId: string;
|
|
40
|
+
searchText: string;
|
|
41
|
+
contextLines: number;
|
|
42
|
+
}, {
|
|
43
|
+
documentId: string;
|
|
44
|
+
searchText: string;
|
|
45
|
+
contextLines?: number | undefined;
|
|
46
|
+
}>>;
|
|
47
|
+
//# sourceMappingURL=read.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/google/docs/tools/read.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0IxB;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;GAkDvB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;GA2EtB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;GA0FzB,CAAC"}
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Docs Read Tools
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { defineTool, jsonResult, errorResult } from '../../../helpers';
|
|
6
|
+
const DOCS_API = 'https://docs.googleapis.com/v1/documents';
|
|
7
|
+
/**
|
|
8
|
+
* Extract plain text from document structure
|
|
9
|
+
*/
|
|
10
|
+
function extractText(elements) {
|
|
11
|
+
if (!elements)
|
|
12
|
+
return '';
|
|
13
|
+
const textParts = [];
|
|
14
|
+
for (const element of elements) {
|
|
15
|
+
if (element.paragraph?.elements) {
|
|
16
|
+
for (const paragraphElement of element.paragraph.elements) {
|
|
17
|
+
if (paragraphElement.textRun?.content) {
|
|
18
|
+
textParts.push(paragraphElement.textRun.content);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
else if (element.table?.tableRows) {
|
|
23
|
+
// Extract text from table cells
|
|
24
|
+
for (const row of element.table.tableRows) {
|
|
25
|
+
if (row.tableCells) {
|
|
26
|
+
const cellTexts = row.tableCells.map((cell) => extractText(cell.content).trim());
|
|
27
|
+
textParts.push(cellTexts.join('\t') + '\n');
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
else if (element.tableOfContents?.content) {
|
|
32
|
+
textParts.push(extractText(element.tableOfContents.content));
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return textParts.join('');
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Extract headings from document
|
|
39
|
+
*/
|
|
40
|
+
function extractHeadings(elements) {
|
|
41
|
+
if (!elements)
|
|
42
|
+
return [];
|
|
43
|
+
const headings = [];
|
|
44
|
+
const headingStyles = ['HEADING_1', 'HEADING_2', 'HEADING_3', 'HEADING_4', 'HEADING_5', 'HEADING_6', 'TITLE'];
|
|
45
|
+
for (const element of elements) {
|
|
46
|
+
if (element.paragraph) {
|
|
47
|
+
const style = element.paragraph.paragraphStyle?.namedStyleType;
|
|
48
|
+
if (style && headingStyles.includes(style)) {
|
|
49
|
+
const text = element.paragraph.elements
|
|
50
|
+
?.map((e) => e.textRun?.content || '')
|
|
51
|
+
.join('')
|
|
52
|
+
.trim();
|
|
53
|
+
if (text) {
|
|
54
|
+
headings.push({ level: style, text });
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return headings;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Read document as plain text
|
|
63
|
+
*/
|
|
64
|
+
export const readDocument = defineTool({
|
|
65
|
+
name: 'google_docs_read_document',
|
|
66
|
+
description: 'Read a Google Document and return its content as plain text. Best for reading and understanding document content.',
|
|
67
|
+
category: 'docs',
|
|
68
|
+
tags: ['docs', 'document', 'read', 'text'],
|
|
69
|
+
alwaysVisible: true,
|
|
70
|
+
parameters: z.object({
|
|
71
|
+
documentId: z.string().describe('The ID of the document (from the URL)'),
|
|
72
|
+
includeHeadings: z
|
|
73
|
+
.boolean()
|
|
74
|
+
.default(false)
|
|
75
|
+
.describe('Include a list of headings/sections at the start'),
|
|
76
|
+
}),
|
|
77
|
+
handler: async (params, ctx) => {
|
|
78
|
+
const response = await ctx.authorizedFetch(`${DOCS_API}/${params.documentId}`);
|
|
79
|
+
if (!response.ok) {
|
|
80
|
+
const error = await response.text();
|
|
81
|
+
return errorResult(`Docs API error: ${response.status} - ${error}`);
|
|
82
|
+
}
|
|
83
|
+
const doc = (await response.json());
|
|
84
|
+
const text = extractText(doc.body?.content);
|
|
85
|
+
if (params.includeHeadings) {
|
|
86
|
+
const headings = extractHeadings(doc.body?.content);
|
|
87
|
+
const headingsList = headings.length > 0
|
|
88
|
+
? `Document Structure:\n${headings.map((h) => `- [${h.level}] ${h.text}`).join('\n')}\n\n---\n\n`
|
|
89
|
+
: '';
|
|
90
|
+
return jsonResult({
|
|
91
|
+
documentId: doc.documentId,
|
|
92
|
+
title: doc.title,
|
|
93
|
+
headings: headings,
|
|
94
|
+
content: headingsList + text,
|
|
95
|
+
characterCount: text.length,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return jsonResult({
|
|
99
|
+
documentId: doc.documentId,
|
|
100
|
+
title: doc.title,
|
|
101
|
+
content: text,
|
|
102
|
+
characterCount: text.length,
|
|
103
|
+
});
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
/**
|
|
107
|
+
* Get full document structure
|
|
108
|
+
*/
|
|
109
|
+
export const getDocument = defineTool({
|
|
110
|
+
name: 'google_docs_get_document',
|
|
111
|
+
description: 'Get the full Google Document structure including formatting, styles, and metadata. Use for detailed document analysis.',
|
|
112
|
+
category: 'docs',
|
|
113
|
+
tags: ['docs', 'document', 'metadata', 'structure', 'read'],
|
|
114
|
+
alwaysVisible: true,
|
|
115
|
+
parameters: z.object({
|
|
116
|
+
documentId: z.string().describe('The ID of the document'),
|
|
117
|
+
suggestionsViewMode: z
|
|
118
|
+
.enum(['DEFAULT_FOR_CURRENT_ACCESS', 'SUGGESTIONS_INLINE', 'PREVIEW_SUGGESTIONS_ACCEPTED', 'PREVIEW_WITHOUT_SUGGESTIONS'])
|
|
119
|
+
.default('DEFAULT_FOR_CURRENT_ACCESS')
|
|
120
|
+
.describe('How to render suggestions'),
|
|
121
|
+
}),
|
|
122
|
+
handler: async (params, ctx) => {
|
|
123
|
+
const url = new URL(`${DOCS_API}/${params.documentId}`);
|
|
124
|
+
url.searchParams.set('suggestionsViewMode', params.suggestionsViewMode);
|
|
125
|
+
const response = await ctx.authorizedFetch(url.toString());
|
|
126
|
+
if (!response.ok) {
|
|
127
|
+
const error = await response.text();
|
|
128
|
+
return errorResult(`Docs API error: ${response.status} - ${error}`);
|
|
129
|
+
}
|
|
130
|
+
const doc = (await response.json());
|
|
131
|
+
// Count structural elements
|
|
132
|
+
const elementCounts = {
|
|
133
|
+
paragraphs: 0,
|
|
134
|
+
tables: 0,
|
|
135
|
+
images: 0,
|
|
136
|
+
};
|
|
137
|
+
function countElements(elements) {
|
|
138
|
+
if (!elements)
|
|
139
|
+
return;
|
|
140
|
+
for (const element of elements) {
|
|
141
|
+
if (element.paragraph) {
|
|
142
|
+
elementCounts.paragraphs++;
|
|
143
|
+
for (const pe of element.paragraph.elements || []) {
|
|
144
|
+
if (pe.inlineObjectElement)
|
|
145
|
+
elementCounts.images++;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if (element.table) {
|
|
149
|
+
elementCounts.tables++;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
countElements(doc.body?.content);
|
|
154
|
+
const headings = extractHeadings(doc.body?.content);
|
|
155
|
+
const textContent = extractText(doc.body?.content);
|
|
156
|
+
return jsonResult({
|
|
157
|
+
documentId: doc.documentId,
|
|
158
|
+
title: doc.title,
|
|
159
|
+
revisionId: doc.revisionId,
|
|
160
|
+
pageSize: doc.documentStyle?.pageSize,
|
|
161
|
+
margins: {
|
|
162
|
+
top: doc.documentStyle?.marginTop?.magnitude,
|
|
163
|
+
bottom: doc.documentStyle?.marginBottom?.magnitude,
|
|
164
|
+
left: doc.documentStyle?.marginLeft?.magnitude,
|
|
165
|
+
right: doc.documentStyle?.marginRight?.magnitude,
|
|
166
|
+
},
|
|
167
|
+
hasHeaders: Object.keys(doc.headers || {}).length > 0,
|
|
168
|
+
hasFooters: Object.keys(doc.footers || {}).length > 0,
|
|
169
|
+
elementCounts,
|
|
170
|
+
headings,
|
|
171
|
+
characterCount: textContent.length,
|
|
172
|
+
wordCount: textContent.split(/\s+/).filter((w) => w.length > 0).length,
|
|
173
|
+
});
|
|
174
|
+
},
|
|
175
|
+
});
|
|
176
|
+
/**
|
|
177
|
+
* Search within document
|
|
178
|
+
*/
|
|
179
|
+
export const searchDocument = defineTool({
|
|
180
|
+
name: 'google_docs_search',
|
|
181
|
+
description: 'Search for text within a Google Document. Returns matching paragraphs with context.',
|
|
182
|
+
category: 'docs',
|
|
183
|
+
tags: ['docs', 'document', 'search', 'find', 'read'],
|
|
184
|
+
alwaysVisible: false,
|
|
185
|
+
parameters: z.object({
|
|
186
|
+
documentId: z.string().describe('The ID of the document'),
|
|
187
|
+
searchText: z.string().describe('Text to search for (case-insensitive)'),
|
|
188
|
+
contextLines: z.number().default(0).describe('Number of context lines before/after match'),
|
|
189
|
+
}),
|
|
190
|
+
handler: async (params, ctx) => {
|
|
191
|
+
const response = await ctx.authorizedFetch(`${DOCS_API}/${params.documentId}`);
|
|
192
|
+
if (!response.ok) {
|
|
193
|
+
const error = await response.text();
|
|
194
|
+
return errorResult(`Docs API error: ${response.status} - ${error}`);
|
|
195
|
+
}
|
|
196
|
+
const doc = (await response.json());
|
|
197
|
+
const searchLower = params.searchText.toLowerCase();
|
|
198
|
+
// Find all paragraphs containing the search text
|
|
199
|
+
const matches = [];
|
|
200
|
+
const paragraphs = [];
|
|
201
|
+
if (doc.body?.content) {
|
|
202
|
+
for (const element of doc.body.content) {
|
|
203
|
+
if (element.paragraph?.elements) {
|
|
204
|
+
const text = element.paragraph.elements.map((e) => e.textRun?.content || '').join('');
|
|
205
|
+
paragraphs.push(text);
|
|
206
|
+
const textLower = text.toLowerCase();
|
|
207
|
+
if (textLower.includes(searchLower)) {
|
|
208
|
+
// Find all positions
|
|
209
|
+
const positions = [];
|
|
210
|
+
let pos = textLower.indexOf(searchLower);
|
|
211
|
+
while (pos !== -1) {
|
|
212
|
+
positions.push(pos);
|
|
213
|
+
pos = textLower.indexOf(searchLower, pos + 1);
|
|
214
|
+
}
|
|
215
|
+
matches.push({
|
|
216
|
+
paragraphIndex: paragraphs.length - 1,
|
|
217
|
+
text: text.trim(),
|
|
218
|
+
matchPositions: positions,
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
if (matches.length === 0) {
|
|
225
|
+
return jsonResult({
|
|
226
|
+
documentId: doc.documentId,
|
|
227
|
+
title: doc.title,
|
|
228
|
+
searchText: params.searchText,
|
|
229
|
+
matchCount: 0,
|
|
230
|
+
matches: [],
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
// Add context if requested
|
|
234
|
+
const matchesWithContext = matches.map((match) => {
|
|
235
|
+
if (params.contextLines > 0) {
|
|
236
|
+
const start = Math.max(0, match.paragraphIndex - params.contextLines);
|
|
237
|
+
const end = Math.min(paragraphs.length - 1, match.paragraphIndex + params.contextLines);
|
|
238
|
+
return {
|
|
239
|
+
...match,
|
|
240
|
+
context: paragraphs.slice(start, end + 1).map((p) => p.trim()),
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
return match;
|
|
244
|
+
});
|
|
245
|
+
return jsonResult({
|
|
246
|
+
documentId: doc.documentId,
|
|
247
|
+
title: doc.title,
|
|
248
|
+
searchText: params.searchText,
|
|
249
|
+
matchCount: matches.length,
|
|
250
|
+
totalOccurrences: matches.reduce((sum, m) => sum + m.matchPositions.length, 0),
|
|
251
|
+
matches: matchesWithContext,
|
|
252
|
+
});
|
|
253
|
+
},
|
|
254
|
+
});
|
|
255
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read.js","sourceRoot":"","sources":["../../../../src/google/docs/tools/read.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGvE,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CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;iBAC/D,CAAC;YACJ,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC,CAAC,CAAC;QAEH,OAAO,UAAU,CAAC;YAChB,UAAU,EAAE,GAAG,CAAC,UAAU;YAC1B,KAAK,EAAE,GAAG,CAAC,KAAK;YAChB,UAAU,EAAE,MAAM,CAAC,UAAU;YAC7B,UAAU,EAAE,OAAO,CAAC,MAAM;YAC1B,gBAAgB,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,CAAC;YAC9E,OAAO,EAAE,kBAAkB;SAC5B,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Docs Write Tools
|
|
3
|
+
*/
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
/**
|
|
6
|
+
* Create a new document
|
|
7
|
+
*/
|
|
8
|
+
export declare const createDocument: import("../../..").ToolDefinition<z.ZodObject<{
|
|
9
|
+
title: z.ZodString;
|
|
10
|
+
initialContent: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
title: string;
|
|
13
|
+
initialContent?: string | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
title: string;
|
|
16
|
+
initialContent?: string | undefined;
|
|
17
|
+
}>>;
|
|
18
|
+
/**
|
|
19
|
+
* Insert text at a position
|
|
20
|
+
*/
|
|
21
|
+
export declare const insertText: import("../../..").ToolDefinition<z.ZodObject<{
|
|
22
|
+
documentId: z.ZodString;
|
|
23
|
+
text: z.ZodString;
|
|
24
|
+
index: z.ZodNumber;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
text: string;
|
|
27
|
+
index: number;
|
|
28
|
+
documentId: string;
|
|
29
|
+
}, {
|
|
30
|
+
text: string;
|
|
31
|
+
index: number;
|
|
32
|
+
documentId: string;
|
|
33
|
+
}>>;
|
|
34
|
+
/**
|
|
35
|
+
* Append content to end of document
|
|
36
|
+
*/
|
|
37
|
+
export declare const appendContent: import("../../..").ToolDefinition<z.ZodObject<{
|
|
38
|
+
documentId: z.ZodString;
|
|
39
|
+
content: z.ZodString;
|
|
40
|
+
addNewline: z.ZodDefault<z.ZodBoolean>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
content: string;
|
|
43
|
+
documentId: string;
|
|
44
|
+
addNewline: boolean;
|
|
45
|
+
}, {
|
|
46
|
+
content: string;
|
|
47
|
+
documentId: string;
|
|
48
|
+
addNewline?: boolean | undefined;
|
|
49
|
+
}>>;
|
|
50
|
+
/**
|
|
51
|
+
* Replace all occurrences of text
|
|
52
|
+
*/
|
|
53
|
+
export declare const replaceText: import("../../..").ToolDefinition<z.ZodObject<{
|
|
54
|
+
documentId: z.ZodString;
|
|
55
|
+
searchText: z.ZodString;
|
|
56
|
+
replaceText: z.ZodString;
|
|
57
|
+
matchCase: z.ZodDefault<z.ZodBoolean>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
documentId: string;
|
|
60
|
+
searchText: string;
|
|
61
|
+
replaceText: string;
|
|
62
|
+
matchCase: boolean;
|
|
63
|
+
}, {
|
|
64
|
+
documentId: string;
|
|
65
|
+
searchText: string;
|
|
66
|
+
replaceText: string;
|
|
67
|
+
matchCase?: boolean | undefined;
|
|
68
|
+
}>>;
|
|
69
|
+
/**
|
|
70
|
+
* Delete content range
|
|
71
|
+
*/
|
|
72
|
+
export declare const deleteContent: import("../../..").ToolDefinition<z.ZodObject<{
|
|
73
|
+
documentId: z.ZodString;
|
|
74
|
+
startIndex: z.ZodNumber;
|
|
75
|
+
endIndex: z.ZodNumber;
|
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
|
77
|
+
documentId: string;
|
|
78
|
+
startIndex: number;
|
|
79
|
+
endIndex: number;
|
|
80
|
+
}, {
|
|
81
|
+
documentId: string;
|
|
82
|
+
startIndex: number;
|
|
83
|
+
endIndex: number;
|
|
84
|
+
}>>;
|
|
85
|
+
/**
|
|
86
|
+
* Update text style (formatting)
|
|
87
|
+
*/
|
|
88
|
+
export declare const updateTextStyle: import("../../..").ToolDefinition<z.ZodObject<{
|
|
89
|
+
documentId: z.ZodString;
|
|
90
|
+
startIndex: z.ZodNumber;
|
|
91
|
+
endIndex: z.ZodNumber;
|
|
92
|
+
bold: z.ZodOptional<z.ZodBoolean>;
|
|
93
|
+
italic: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
underline: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
strikethrough: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
fontSize: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
fontFamily: z.ZodOptional<z.ZodString>;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
documentId: string;
|
|
100
|
+
startIndex: number;
|
|
101
|
+
endIndex: number;
|
|
102
|
+
bold?: boolean | undefined;
|
|
103
|
+
italic?: boolean | undefined;
|
|
104
|
+
underline?: boolean | undefined;
|
|
105
|
+
strikethrough?: boolean | undefined;
|
|
106
|
+
fontSize?: number | undefined;
|
|
107
|
+
fontFamily?: string | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
documentId: string;
|
|
110
|
+
startIndex: number;
|
|
111
|
+
endIndex: number;
|
|
112
|
+
bold?: boolean | undefined;
|
|
113
|
+
italic?: boolean | undefined;
|
|
114
|
+
underline?: boolean | undefined;
|
|
115
|
+
strikethrough?: boolean | undefined;
|
|
116
|
+
fontSize?: number | undefined;
|
|
117
|
+
fontFamily?: string | undefined;
|
|
118
|
+
}>>;
|
|
119
|
+
/**
|
|
120
|
+
* Update paragraph style
|
|
121
|
+
*/
|
|
122
|
+
export declare const updateParagraphStyle: import("../../..").ToolDefinition<z.ZodObject<{
|
|
123
|
+
documentId: z.ZodString;
|
|
124
|
+
startIndex: z.ZodNumber;
|
|
125
|
+
endIndex: z.ZodNumber;
|
|
126
|
+
alignment: z.ZodOptional<z.ZodEnum<["START", "CENTER", "END", "JUSTIFIED"]>>;
|
|
127
|
+
namedStyleType: z.ZodOptional<z.ZodEnum<["NORMAL_TEXT", "TITLE", "SUBTITLE", "HEADING_1", "HEADING_2", "HEADING_3", "HEADING_4", "HEADING_5", "HEADING_6"]>>;
|
|
128
|
+
lineSpacing: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
spaceAbove: z.ZodOptional<z.ZodNumber>;
|
|
130
|
+
spaceBelow: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
documentId: string;
|
|
133
|
+
startIndex: number;
|
|
134
|
+
endIndex: number;
|
|
135
|
+
alignment?: "START" | "CENTER" | "END" | "JUSTIFIED" | undefined;
|
|
136
|
+
namedStyleType?: "HEADING_1" | "HEADING_2" | "HEADING_3" | "HEADING_4" | "HEADING_5" | "HEADING_6" | "TITLE" | "NORMAL_TEXT" | "SUBTITLE" | undefined;
|
|
137
|
+
lineSpacing?: number | undefined;
|
|
138
|
+
spaceAbove?: number | undefined;
|
|
139
|
+
spaceBelow?: number | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
documentId: string;
|
|
142
|
+
startIndex: number;
|
|
143
|
+
endIndex: number;
|
|
144
|
+
alignment?: "START" | "CENTER" | "END" | "JUSTIFIED" | undefined;
|
|
145
|
+
namedStyleType?: "HEADING_1" | "HEADING_2" | "HEADING_3" | "HEADING_4" | "HEADING_5" | "HEADING_6" | "TITLE" | "NORMAL_TEXT" | "SUBTITLE" | undefined;
|
|
146
|
+
lineSpacing?: number | undefined;
|
|
147
|
+
spaceAbove?: number | undefined;
|
|
148
|
+
spaceBelow?: number | undefined;
|
|
149
|
+
}>>;
|
|
150
|
+
/**
|
|
151
|
+
* Create a formatted Google Document from Markdown
|
|
152
|
+
*/
|
|
153
|
+
export declare const createDocumentFromMarkdown: import("../../..").ToolDefinition<z.ZodObject<{
|
|
154
|
+
title: z.ZodString;
|
|
155
|
+
markdown: z.ZodString;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
title: string;
|
|
158
|
+
markdown: string;
|
|
159
|
+
}, {
|
|
160
|
+
title: string;
|
|
161
|
+
markdown: string;
|
|
162
|
+
}>>;
|
|
163
|
+
/**
|
|
164
|
+
* Create a document from a template
|
|
165
|
+
*/
|
|
166
|
+
export declare const createDocumentFromTemplate: import("../../..").ToolDefinition<z.ZodObject<{
|
|
167
|
+
templateId: z.ZodString;
|
|
168
|
+
title: z.ZodString;
|
|
169
|
+
replacements: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
170
|
+
folderId: z.ZodOptional<z.ZodString>;
|
|
171
|
+
}, "strip", z.ZodTypeAny, {
|
|
172
|
+
title: string;
|
|
173
|
+
templateId: string;
|
|
174
|
+
replacements: Record<string, string>;
|
|
175
|
+
folderId?: string | undefined;
|
|
176
|
+
}, {
|
|
177
|
+
title: string;
|
|
178
|
+
templateId: string;
|
|
179
|
+
replacements: Record<string, string>;
|
|
180
|
+
folderId?: string | undefined;
|
|
181
|
+
}>>;
|
|
182
|
+
//# sourceMappingURL=write.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"write.d.ts","sourceRoot":"","sources":["../../../../src/google/docs/tools/write.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6BxB;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;GAuDzB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;GAuCrB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;GAyDxB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;GA8CtB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;GA4CxB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqF1B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsF/B,CAAC;AAgIH;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;GAoIrC,CAAC;AAQH;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;GAwErC,CAAC"}
|