@qvac/skills 0.1.10 → 0.1.12
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/bundled.js +11 -29
- package/hash.js +1 -1
- package/package.json +1 -1
- package/skills/excel/SKILL.md +146 -111
- package/skills/gmail/SKILL.md +7 -4
- package/skills/google-calendar/SKILL.md +7 -4
- package/skills/google-docs/SKILL.md +7 -5
- package/skills/google-drive/SKILL.md +7 -4
- package/skills/google-sheets/SKILL.md +7 -5
- package/skills/music-generation/SKILL.md +15 -0
- package/skills/pdf/SKILL.md +146 -96
- package/skills/presentations/SKILL.md +133 -109
- package/skills/sheet-music/SKILL.md +93 -0
- package/skills/word/SKILL.md +144 -124
- package/skills/excel/references/create.md +0 -374
- package/skills/excel/references/edit.md +0 -357
- package/skills/excel/references/read.md +0 -99
- package/skills/pdf/references/create.md +0 -169
- package/skills/pdf/references/transform.md +0 -270
- package/skills/pdf/scripts/decrypt.py +0 -26
- package/skills/pdf/scripts/encrypt.py +0 -25
- package/skills/pdf/scripts/extract_text.py +0 -25
- package/skills/pdf/scripts/merge.py +0 -21
- package/skills/pdf/scripts/rotate.py +0 -27
- package/skills/presentations/references/create.md +0 -399
- package/skills/presentations/references/edit.md +0 -314
- package/skills/presentations/references/read.md +0 -127
- package/skills/word/references/create.md +0 -400
- package/skills/word/references/paragraphs.md +0 -125
- package/skills/word/references/read.md +0 -141
- package/skills/word/references/rework.md +0 -767
- package/skills/word/scripts/list_paragraphs.py +0 -25
- package/skills/word/scripts/replace_paragraphs.py +0 -58
package/hash.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Autogenerated by scripts/build.mjs from skills/. Do not edit.
|
|
2
|
-
export const SKILLS_HASH = '
|
|
2
|
+
export const SKILLS_HASH = 'b97470e51b8846e3'
|
package/package.json
CHANGED
package/skills/excel/SKILL.md
CHANGED
|
@@ -1,127 +1,162 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: excel
|
|
3
|
-
description: Create, edit, or read Excel spreadsheets (.xlsx)
|
|
3
|
+
description: Create, edit, or read Excel spreadsheets (.xlsx) — deliver workbooks as chat attachments, or read an attached one to summarize it or answer questions in the chat. Writes values and live formulas and can embed images. Opens in Numbers and Google Sheets too.
|
|
4
4
|
aliases: [xlsx, spreadsheet, workbook]
|
|
5
|
-
tools: [
|
|
6
|
-
platform: [darwin, linux, win32]
|
|
7
|
-
# Routing tuned on Qwen3.5-4B for QVAC-24106 ("@excel embed this image into a spreadsheet" after a
|
|
8
|
-
# generate_image turn). The bullet list sent 13/14 runs to edit.md, and 6/14 ended with no image in
|
|
9
|
-
# a workbook, most by asking the user to attach one. As a request -> file table: 5/5 to create.md and
|
|
10
|
-
# 5/5 embedded the image; "add a fourth row" to a workbook built in the chat still loads edit.md, 3/3.
|
|
11
|
-
metadata:
|
|
12
|
-
{
|
|
13
|
-
"openclaw":
|
|
14
|
-
{
|
|
15
|
-
"setup":
|
|
16
|
-
{
|
|
17
|
-
"summary": "Runs openpyxl in the in-process Python runtime, from packages that ship with the app. The first use waits for the runtime to start."
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
5
|
+
tools: [xlsx]
|
|
6
|
+
platform: [darwin, linux, win32, ios, android]
|
|
21
7
|
---
|
|
22
8
|
|
|
23
9
|
# Excel
|
|
24
10
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
11
|
+
Every workbook job is one or two `xlsx` tool calls. A call with `ops` saves a
|
|
12
|
+
new file named `output` and attaches it to the chat; a call without `ops`
|
|
13
|
+
changes nothing and returns what the workbook holds.
|
|
14
|
+
|
|
15
|
+
## Pick the Call
|
|
16
|
+
|
|
17
|
+
| The user wants | The calls |
|
|
18
|
+
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
|
|
19
|
+
| "make a spreadsheet of …", "embed this image into a spreadsheet" — no `.xlsx` here yet | one call: `create` + `ops` + `output` |
|
|
20
|
+
| "change B2 to 125", "add this image to my budget.xlsx" — an `.xlsx` is here | one call: `attachmentId` + `ops` + `output` |
|
|
21
|
+
| "add a total row", "fix the wrong prices" — the change depends on what is in it | read (`attachmentId` alone), then one edit call |
|
|
22
|
+
| "what is the total in this sheet?", "summarize this workbook" | read (`attachmentId` alone), then reply in the chat — no second call |
|
|
23
|
+
| "summarize this workbook into a new file" | read, then one `create` call written from what the read returned |
|
|
24
|
+
|
|
25
|
+
A workbook already in this chat is never rebuilt with `create` — that throws
|
|
26
|
+
away everything the user has. Its `attachmentId` is in the tool result that
|
|
27
|
+
produced it, or on the user's `[Attached file …]` line:
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
[Attached file "budget.xlsx" (application/vnd.openxmlformats-officedocument.spreadsheetml.sheet) — attachmentId: 4f9c2ab1]
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Copy the id verbatim. Never make one up.
|
|
34
|
+
|
|
35
|
+
**An image this chat generated is already attached.** A `generate_image` result
|
|
36
|
+
in any earlier turn is the image "this image" means, and its `attachmentId` is
|
|
37
|
+
the one to use. Never ask the user to attach an image the conversation already
|
|
38
|
+
has.
|
|
39
|
+
|
|
40
|
+
## A New Workbook
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"create": { "sheets": ["Sales"] },
|
|
45
|
+
"ops": [
|
|
46
|
+
{ "op": "setCells", "sheet": "Sales", "cells": {
|
|
47
|
+
"A1": { "value": "Quarter", "bold": true },
|
|
48
|
+
"B1": { "value": "Units", "bold": true },
|
|
49
|
+
"C1": { "value": "Price", "bold": true },
|
|
50
|
+
"D1": { "value": "Revenue", "bold": true }
|
|
51
|
+
} },
|
|
52
|
+
{ "op": "appendRows", "sheet": "Sales", "rows": [
|
|
53
|
+
["Q1", 120, 9.5, "=B2*C2"],
|
|
54
|
+
["Q2", 135, 9.5, "=B3*C3"],
|
|
55
|
+
["Q3", 150, 10, "=B4*C4"],
|
|
56
|
+
["Total", "=SUM(B2:B4)", null, "=SUM(D2:D4)"]
|
|
57
|
+
] },
|
|
58
|
+
{ "op": "setColumnWidth", "sheet": "Sales", "column": "A", "width": 14 }
|
|
59
|
+
],
|
|
60
|
+
"output": "sales.xlsx"
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Values and Formulas
|
|
65
|
+
|
|
66
|
+
Text that starts with `=` is a formula. Nothing computes it here — the
|
|
67
|
+
spreadsheet app does, the moment the user opens the file. So:
|
|
68
|
+
|
|
69
|
+
- For a total, an average, or anything derived from other cells, write the
|
|
70
|
+
formula (`"=SUM(D2:D4)"`). It stays right when the user edits the numbers.
|
|
71
|
+
- For numbers the user gave you or that you know, write the number.
|
|
72
|
+
- A formula cell shows no value in the chat preview. Say so in the reply: "the
|
|
73
|
+
totals are live formulas, so they appear when you open the file."
|
|
74
|
+
|
|
75
|
+
## Reading a Workbook
|
|
76
|
+
|
|
77
|
+
```json
|
|
78
|
+
{ "attachmentId": "4f9c2ab1" }
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
It returns every sheet — its name and used range, its rows of values, and a map
|
|
82
|
+
of the formula in each formula cell. A formula's value is the result the file
|
|
83
|
+
last saved, or `null` if nothing computed it yet — a `null` total is not missing
|
|
84
|
+
data: compute it from the rows the formula names. Dates come back as ISO text.
|
|
85
|
+
You cannot write a summary or a fix in the same call that reads, because the
|
|
86
|
+
words are fixed before the workbook is opened. Read, then write from what came
|
|
87
|
+
back. If the result says it was cut short, answer from what came back and say
|
|
88
|
+
the answer covers the workbook up to that point.
|
|
89
|
+
|
|
90
|
+
## Editing a Workbook
|
|
91
|
+
|
|
92
|
+
```json
|
|
93
|
+
{
|
|
94
|
+
"attachmentId": "4f9c2ab1",
|
|
95
|
+
"ops": [
|
|
96
|
+
{ "op": "setCells", "sheet": "Sales", "cells": { "B3": 125, "A7": "Note", "D7": "=SUM(D3:D5)" } },
|
|
97
|
+
{ "op": "appendRows", "sheet": "Sales", "rows": [["Q4", 80, 10.5, "=B8*C8"]] }
|
|
98
|
+
],
|
|
99
|
+
"output": "budget_revised.xlsx"
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
A `sheet` is its name or its index from 0. Cells are A1 references and rows
|
|
104
|
+
count from 1, as in Excel.
|
|
105
|
+
|
|
106
|
+
| The change | The op |
|
|
107
|
+
| -------------------------- | ------------------------------------------------------------------------------------------- |
|
|
108
|
+
| Set cells | `{ "op": "setCells", "sheet": "Sales", "cells": { "B3": 125, "C3": "=B3*2" } }` |
|
|
109
|
+
| Clear a cell | `{ "op": "setCells", "sheet": "Sales", "cells": { "B3": null } }` |
|
|
110
|
+
| Format a cell | `{ "op": "setCells", "sheet": "Sales", "cells": { "F4": { "value": 0.3, "format": "0.0%", "bold": true, "fill": "FFF2CC" } } }` |
|
|
111
|
+
| A date | `{ "op": "setCells", "sheet": "Sales", "cells": { "G4": { "date": "2026-06-30" } } }` |
|
|
112
|
+
| Add rows at the end | `{ "op": "appendRows", "sheet": "Sales", "rows": [["Q4", 80, 10.5]] }` |
|
|
113
|
+
| Insert rows | `{ "op": "insertRows", "sheet": "Sales", "at": 3, "rows": [["Q1b", 60, 9.5]] }` |
|
|
114
|
+
| Delete rows | `{ "op": "deleteRows", "sheet": "Sales", "at": 5, "count": 2 }` |
|
|
115
|
+
| Delete columns | `{ "op": "deleteColumns", "sheet": "Sales", "column": "E", "count": 1 }` |
|
|
116
|
+
| Column width | `{ "op": "setColumnWidth", "sheet": "Sales", "column": "A", "width": 20 }` |
|
|
117
|
+
| Add a sheet | `{ "op": "addSheet", "name": "Notes" }` |
|
|
118
|
+
| Rename a sheet | `{ "op": "renameSheet", "sheet": "Notes", "name": "Commentary" }` |
|
|
119
|
+
| Delete a sheet | `{ "op": "deleteSheet", "sheet": "Scratch" }` |
|
|
120
|
+
| Add a picture | `{ "op": "addImage", "sheet": "Sales", "image": { "attachmentId": "9be07c12" }, "cell": "F2" }` |
|
|
121
|
+
|
|
122
|
+
Renaming a sheet rewrites every formula that names it. `insertRows` and
|
|
123
|
+
`deleteRows` are refused on a sheet with formulas, merges or tables that would
|
|
124
|
+
not move with the rows — the error names which; use `setCells` and
|
|
125
|
+
`appendRows` there instead.
|
|
126
|
+
|
|
127
|
+
Name the output after the workbook you opened: `budget.xlsx` →
|
|
128
|
+
`budget_revised.xlsx`. Never the input's own name. A macro-enabled `.xlsm` is
|
|
129
|
+
saved as `.xlsx`: add `{ "op": "removeMacros" }` and tell the user the macros
|
|
130
|
+
were not kept.
|
|
131
|
+
|
|
132
|
+
## Images
|
|
133
|
+
|
|
134
|
+
- An image this chat generated: `"image": { "attachmentId": "<id from the generate_image result>" }`.
|
|
135
|
+
- An image the user attached to their latest message: `"image": {}` — an
|
|
136
|
+
uploaded image shows no id, and the empty form picks it up.
|
|
137
|
+
- An image behind a URL cannot be downloaded. Say so, and ask the user to attach
|
|
138
|
+
it or offer `generate_image`.
|
|
29
139
|
|
|
30
|
-
##
|
|
31
|
-
|
|
32
|
-
This file contains no Python. The working recipes live in three reference files —
|
|
33
|
-
load the one for the job with the `skill` tool BEFORE writing any Python, then
|
|
34
|
-
copy its recipe and change the content:
|
|
35
|
-
|
|
36
|
-
Each load is a real `skill` tool call — printing the call as JSON or text in
|
|
37
|
-
your reply loads nothing.
|
|
38
|
-
|
|
39
|
-
Pick the file by whether an `.xlsx` is already in this chat:
|
|
40
|
-
|
|
41
|
-
| The request | Load |
|
|
42
|
-
| ----------------------------------------------------------------------------------- | ----------------------------------------------- |
|
|
43
|
-
| "make a spreadsheet of …", "embed this image into a spreadsheet" — no `.xlsx` yet | `references/create.md` |
|
|
44
|
-
| "add a row", "change B2", "add this image to my budget.xlsx" — an `.xlsx` is here | `references/edit.md` |
|
|
45
|
-
| "what is the total in this sheet?", "summarize this workbook" — the answer is a reply | `references/read.md` |
|
|
46
|
-
| "summarize this workbook into a new file" | `references/read.md` first, then create or edit |
|
|
47
|
-
|
|
48
|
-
Load it with the `skill` tool: `name: "excel"` and that `file`.
|
|
49
|
-
|
|
50
|
-
**An image this chat generated is already attached.** A `generate_image` result in
|
|
51
|
-
any earlier turn is the image "this image" means, and its `attachmentId` stages it.
|
|
52
|
-
Never ask the user to attach an image the conversation already has.
|
|
140
|
+
## Rules for Every Job
|
|
53
141
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
142
|
+
**You build it, not the user.** The workbook exists only when an `xlsx` call
|
|
143
|
+
with `ops` returns its attachment. Never answer with a markdown table instead
|
|
144
|
+
of the file the user asked for, and never tell the user to run anything.
|
|
57
145
|
|
|
58
|
-
|
|
146
|
+
**Success = stop.** When the result lists the attachment, reply with one line —
|
|
147
|
+
the file name and the sheets and rows it holds — and call nothing else.
|
|
59
148
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
answered, or values pulled out into the chat.
|
|
64
|
-
- The user wants a workbook that embeds an image — one generated in this chat or
|
|
65
|
-
one they uploaded. Both recipe files carry it.
|
|
149
|
+
**Errors name the fix.** A failed call returns a message that says what exists
|
|
150
|
+
— the sheet names, the used range. Correct that one op and call again. Never
|
|
151
|
+
repeat an identical call.
|
|
66
152
|
|
|
67
153
|
## When NOT to Use
|
|
68
154
|
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
summarizing from an attached workbook **is** this skill: load
|
|
72
|
-
`references/read.md`.
|
|
73
|
-
- The user wants a comma-separated text file only — write the `.csv` directly with Python's `csv` module (`.csv` is an allowed output), no openpyxl needed.
|
|
74
|
-
|
|
75
|
-
## Values vs Formulas — decide before writing
|
|
76
|
-
|
|
77
|
-
This runtime has no spreadsheet engine: openpyxl writes a formula as text and
|
|
78
|
-
computes nothing. A formula cell has **no value** until the user opens the file
|
|
79
|
-
in a spreadsheet app and it recalculates. So pick the mode from what the user
|
|
80
|
-
wants:
|
|
155
|
+
- A table in the chat built from what is already in the conversation, with no
|
|
156
|
+
workbook involved — write a markdown table.
|
|
81
157
|
|
|
82
|
-
|
|
83
|
-
Python and write **literal values**. This is the default.
|
|
84
|
-
- **They want a live spreadsheet** (totals that update when they edit cells):
|
|
85
|
-
write formulas — and say so in the reply, because the formula cells look empty
|
|
86
|
-
in the chat preview: "the total is a live formula, so it shows up once you
|
|
87
|
-
open the file in Excel, Numbers, or Sheets."
|
|
88
|
-
- Never write a formula and then read it back expecting a number, and never
|
|
89
|
-
"verify" a formula by reloading the file — there is nothing to verify.
|
|
90
|
-
|
|
91
|
-
Writing both is fine: literal values everywhere, plus a `=SUM(...)` total row if
|
|
92
|
-
the user wants it to stay live.
|
|
93
|
-
|
|
94
|
-
## Rules for Every Job
|
|
158
|
+
## What This Cannot Do
|
|
95
159
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
would not run there. The workbook exists only if an `exec` call with `outputs`
|
|
100
|
-
succeeds and returns the attachment.
|
|
101
|
-
|
|
102
|
-
**Success = stop.** When `exitCode` is `0` and `attachments` lists the `.xlsx`,
|
|
103
|
-
the workbook is done — do not call `exec` again, not to "confirm", not to
|
|
104
|
-
"improve", not to reload the file to "check the formulas". Exactly one
|
|
105
|
-
successful *build* call per request (a no-`outputs` read that precedes a build
|
|
106
|
-
delivers nothing and is not one of them, but it belongs before the build, never
|
|
107
|
-
after). Reply with a single line: file name + the sheet/row summary from stdout.
|
|
108
|
-
If the result has `missingOutputs`, read stderr first: an `AssertionError` there
|
|
109
|
-
means a guard stopped the save on purpose and its message names what to fix;
|
|
110
|
-
only when stderr is clean check the `save()` name matches the declared output
|
|
111
|
-
and rerun once.
|
|
112
|
-
|
|
113
|
-
**Failures are fixed in the code, not around it.** If a run fails, fix the
|
|
114
|
-
Python against the loaded reference file's recipes and Errors table and call
|
|
115
|
-
`exec` again. If two consecutive calls fail with the same error, re-read the
|
|
116
|
-
traceback line-by-line before a third. An error is never a fault in openpyxl or
|
|
117
|
-
the runtime — keep `packages: ["openpyxl==3.1.5"]`, never wrap source in
|
|
118
|
-
`python -c` or shell, never "debug" with `os.listdir` or no-op scripts.
|
|
119
|
-
|
|
120
|
-
**The runtime is sealed.** No shell (`ls`, `cat` raise `SyntaxError` — the
|
|
121
|
-
`command` is Python source) and no network (`requests` and `urllib` fail — a
|
|
122
|
-
URL to a spreadsheet cannot be downloaded; ask the user to attach the file).
|
|
123
|
-
The working directory starts empty on every call: a file from an earlier call
|
|
124
|
-
is gone unless staged again via `inputs`, and a file you write but do not
|
|
125
|
-
declare in `outputs` is discarded.
|
|
126
|
-
|
|
127
|
-
**Never overwrite a staged input.** Edits always save under a new output name.
|
|
160
|
+
Say so instead of faking it: charts in a workbook, pivot tables, editing
|
|
161
|
+
conditional formatting or data validation (both are kept as they are), and
|
|
162
|
+
legacy `.xls` files.
|
package/skills/gmail/SKILL.md
CHANGED
|
@@ -18,13 +18,16 @@ metadata:
|
|
|
18
18
|
"credentialKey": "gmail_access_token",
|
|
19
19
|
"description": "Read, search, send, and manage Gmail messages and labels",
|
|
20
20
|
"steps": [
|
|
21
|
-
"Click Connect and approve access in the browser. Approving grants access to your Gmail
|
|
21
|
+
"Click Connect and approve access in the browser. Approving grants access to read, compose, and send mail in your Gmail account, and to change labels and move messages to the trash. It does not permanently delete mail.",
|
|
22
22
|
"Each Google skill is connected separately, with its own app and its own approval."
|
|
23
23
|
],
|
|
24
24
|
"configSteps": [
|
|
25
|
-
"[
|
|
26
|
-
"[
|
|
27
|
-
"[Open
|
|
25
|
+
"[Create a project](https://console.cloud.google.com/projectcreate) if you do not have one. Select that project in the console and stay in it for every step below.",
|
|
26
|
+
"[Enable the Gmail API](https://console.cloud.google.com/flows/enableapi?apiid=gmail.googleapis.com) on that project. Reading, sending, labels, and trash all use the Gmail API.",
|
|
27
|
+
"[Open Branding](https://console.cloud.google.com/auth/branding). If setup has not been started, click Get started: app name, user support email, audience External, a contact email, agree to the user data policy, then Create.",
|
|
28
|
+
"[Open Data Access](https://console.cloud.google.com/auth/scopes), choose Add or remove scopes, add https://www.googleapis.com/auth/gmail.modify, and save.",
|
|
29
|
+
"[Open Audience](https://console.cloud.google.com/auth/audience). While Publishing status is Testing, click Add users and add the Google account that will click Connect.",
|
|
30
|
+
"[Open Clients](https://console.cloud.google.com/auth/clients), click Create Client, and choose Desktop app. Copy the Client ID and Client Secret into the fields below."
|
|
28
31
|
],
|
|
29
32
|
"fields": [
|
|
30
33
|
{
|
|
@@ -18,13 +18,16 @@ metadata:
|
|
|
18
18
|
"credentialKey": "google_calendar_access_token",
|
|
19
19
|
"description": "List, create, update, and delete Google Calendar events",
|
|
20
20
|
"steps": [
|
|
21
|
-
"Click Connect and approve access in the browser. Approving grants access to
|
|
21
|
+
"Click Connect and approve access in the browser. Approving grants access to all of the calendars you can access. This app uses that access to list, create, change, and delete events, check free/busy, and add Google Meet links.",
|
|
22
22
|
"Each Google skill is connected separately, with its own app and its own approval."
|
|
23
23
|
],
|
|
24
24
|
"configSteps": [
|
|
25
|
-
"[
|
|
26
|
-
"[
|
|
27
|
-
"[Open
|
|
25
|
+
"[Create a project](https://console.cloud.google.com/projectcreate) if you do not have one. Select that project in the console and stay in it for every step below.",
|
|
26
|
+
"[Enable the Google Calendar API](https://console.cloud.google.com/flows/enableapi?apiid=calendar-json.googleapis.com) on that project. Events, free/busy, and Meet links use the Calendar API.",
|
|
27
|
+
"[Open Branding](https://console.cloud.google.com/auth/branding). If setup has not been started, click Get started: app name, user support email, audience External, a contact email, agree to the user data policy, then Create.",
|
|
28
|
+
"[Open Data Access](https://console.cloud.google.com/auth/scopes), choose Add or remove scopes, add https://www.googleapis.com/auth/calendar, and save.",
|
|
29
|
+
"[Open Audience](https://console.cloud.google.com/auth/audience). While Publishing status is Testing, click Add users and add the Google account that will click Connect.",
|
|
30
|
+
"[Open Clients](https://console.cloud.google.com/auth/clients), click Create Client, and choose Desktop app. Copy the Client ID and Client Secret into the fields below."
|
|
28
31
|
],
|
|
29
32
|
"fields": [
|
|
30
33
|
{
|
|
@@ -17,13 +17,16 @@ metadata:
|
|
|
17
17
|
"credentialKey": "google_docs_access_token",
|
|
18
18
|
"description": "Create, read, and edit Google Docs documents",
|
|
19
19
|
"steps": [
|
|
20
|
-
"Click Connect and approve access in the browser. Approving grants access to your
|
|
20
|
+
"Click Connect and approve access in the browser. Approving grants access to all of your Google Drive files. This app uses that access to create, read, and edit Google Docs, find a document, and move it to the trash.",
|
|
21
21
|
"Each Google skill is connected separately, with its own app and its own approval."
|
|
22
22
|
],
|
|
23
23
|
"configSteps": [
|
|
24
|
-
"[
|
|
25
|
-
"[
|
|
26
|
-
"[Open
|
|
24
|
+
"[Create a project](https://console.cloud.google.com/projectcreate) if you do not have one. Select that project in the console and stay in it for every step below.",
|
|
25
|
+
"[Enable the Google Docs API and the Drive API](https://console.cloud.google.com/flows/enableapi?apiid=docs.googleapis.com,drive.googleapis.com) on that project. Document text uses the Docs API. Finding a document and moving it to the trash use the Drive API.",
|
|
26
|
+
"[Open Branding](https://console.cloud.google.com/auth/branding). If setup has not been started, click Get started: app name, user support email, audience External, a contact email, agree to the user data policy, then Create.",
|
|
27
|
+
"[Open Data Access](https://console.cloud.google.com/auth/scopes), choose Add or remove scopes, add https://www.googleapis.com/auth/drive, and save.",
|
|
28
|
+
"[Open Audience](https://console.cloud.google.com/auth/audience). While Publishing status is Testing, click Add users and add the Google account that will click Connect.",
|
|
29
|
+
"[Open Clients](https://console.cloud.google.com/auth/clients), click Create Client, and choose Desktop app. Copy the Client ID and Client Secret into the fields below."
|
|
27
30
|
],
|
|
28
31
|
"fields": [
|
|
29
32
|
{
|
|
@@ -43,7 +46,6 @@ metadata:
|
|
|
43
46
|
"tokenUrl": "https://oauth2.googleapis.com/token",
|
|
44
47
|
"tokenAuth": "secret-in-body",
|
|
45
48
|
"scopes": [
|
|
46
|
-
"https://www.googleapis.com/auth/documents",
|
|
47
49
|
"https://www.googleapis.com/auth/drive"
|
|
48
50
|
],
|
|
49
51
|
"extraAuthParams": {
|
|
@@ -17,13 +17,16 @@ metadata:
|
|
|
17
17
|
"credentialKey": "google_drive_access_token",
|
|
18
18
|
"description": "Search, list, and manage Google Drive files and folders",
|
|
19
19
|
"steps": [
|
|
20
|
-
"Click Connect and approve access in the browser. Approving grants access to your Drive files
|
|
20
|
+
"Click Connect and approve access in the browser. Approving grants access to all of your Google Drive files. This app uses that access to search, list, export, rename, and move files and folders to the trash.",
|
|
21
21
|
"Each Google skill is connected separately, with its own app and its own approval."
|
|
22
22
|
],
|
|
23
23
|
"configSteps": [
|
|
24
|
-
"[
|
|
25
|
-
"[
|
|
26
|
-
"[Open
|
|
24
|
+
"[Create a project](https://console.cloud.google.com/projectcreate) if you do not have one. Select that project in the console and stay in it for every step below.",
|
|
25
|
+
"[Enable the Google Drive API](https://console.cloud.google.com/flows/enableapi?apiid=drive.googleapis.com) on that project. Search, export, rename, and trash all use the Drive API.",
|
|
26
|
+
"[Open Branding](https://console.cloud.google.com/auth/branding). If setup has not been started, click Get started: app name, user support email, audience External, a contact email, agree to the user data policy, then Create.",
|
|
27
|
+
"[Open Data Access](https://console.cloud.google.com/auth/scopes), choose Add or remove scopes, add https://www.googleapis.com/auth/drive, and save.",
|
|
28
|
+
"[Open Audience](https://console.cloud.google.com/auth/audience). While Publishing status is Testing, click Add users and add the Google account that will click Connect.",
|
|
29
|
+
"[Open Clients](https://console.cloud.google.com/auth/clients), click Create Client, and choose Desktop app. Copy the Client ID and Client Secret into the fields below."
|
|
27
30
|
],
|
|
28
31
|
"fields": [
|
|
29
32
|
{
|
|
@@ -18,13 +18,16 @@ metadata:
|
|
|
18
18
|
"credentialKey": "google_sheets_access_token",
|
|
19
19
|
"description": "Create, read, and update Google Sheets spreadsheets",
|
|
20
20
|
"steps": [
|
|
21
|
-
"Click Connect and approve access in the browser. Approving grants access to your
|
|
21
|
+
"Click Connect and approve access in the browser. Approving grants access to all of your Google Drive files. This app uses that access to create, read, and edit Google Sheets, find a spreadsheet, and move it to the trash.",
|
|
22
22
|
"Each Google skill is connected separately, with its own app and its own approval."
|
|
23
23
|
],
|
|
24
24
|
"configSteps": [
|
|
25
|
-
"[
|
|
26
|
-
"[
|
|
27
|
-
"[Open
|
|
25
|
+
"[Create a project](https://console.cloud.google.com/projectcreate) if you do not have one. Select that project in the console and stay in it for every step below.",
|
|
26
|
+
"[Enable the Google Sheets API and the Drive API](https://console.cloud.google.com/flows/enableapi?apiid=sheets.googleapis.com,drive.googleapis.com) on that project. Cell values use the Sheets API. Finding a spreadsheet and moving it to the trash use the Drive API.",
|
|
27
|
+
"[Open Branding](https://console.cloud.google.com/auth/branding). If setup has not been started, click Get started: app name, user support email, audience External, a contact email, agree to the user data policy, then Create.",
|
|
28
|
+
"[Open Data Access](https://console.cloud.google.com/auth/scopes), choose Add or remove scopes, add https://www.googleapis.com/auth/drive, and save.",
|
|
29
|
+
"[Open Audience](https://console.cloud.google.com/auth/audience). While Publishing status is Testing, click Add users and add the Google account that will click Connect.",
|
|
30
|
+
"[Open Clients](https://console.cloud.google.com/auth/clients), click Create Client, and choose Desktop app. Copy the Client ID and Client Secret into the fields below."
|
|
28
31
|
],
|
|
29
32
|
"fields": [
|
|
30
33
|
{
|
|
@@ -44,7 +47,6 @@ metadata:
|
|
|
44
47
|
"tokenUrl": "https://oauth2.googleapis.com/token",
|
|
45
48
|
"tokenAuth": "secret-in-body",
|
|
46
49
|
"scopes": [
|
|
47
|
-
"https://www.googleapis.com/auth/spreadsheets",
|
|
48
50
|
"https://www.googleapis.com/auth/drive"
|
|
49
51
|
],
|
|
50
52
|
"extraAuthParams": {
|
|
@@ -42,6 +42,21 @@ prompt says.
|
|
|
42
42
|
Set `duration` when the user asks for a specific length ("30 seconds", "a
|
|
43
43
|
two-minute track"); otherwise leave it unset and let the model choose.
|
|
44
44
|
|
|
45
|
+
## Sheet music
|
|
46
|
+
|
|
47
|
+
`generate_music` can also write the finished track out as sheet music, saved as a
|
|
48
|
+
score attachment, with `sheetMusic: true`. Offer it before generating whenever
|
|
49
|
+
the request sounds like someone will play the result (a melody, a piano or guitar
|
|
50
|
+
piece, a practice backing) or when they mention notes, chords or a score.
|
|
51
|
+
|
|
52
|
+
Sheet music never changes the track. Generate what the user asked for: their
|
|
53
|
+
duration, their instrumentation, their genre. Dense or long material makes a
|
|
54
|
+
crowded score, so say so when the result comes back rather than quietly writing
|
|
55
|
+
something sparser than they asked for. When the choice is genuinely open, a
|
|
56
|
+
sparse 30 to 60 second piece gives a score a person can actually read.
|
|
57
|
+
|
|
58
|
+
To write out audio that already exists, that is `transcribe_music`, not this.
|
|
59
|
+
|
|
45
60
|
## Parameters
|
|
46
61
|
|
|
47
62
|
- `prompt` (required) - describe the genre, instruments, mood, and vocal
|