memorylake-openclaw 1.0.2-beta.1 → 1.0.2-beta.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/index.ts +3 -6
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -1325,7 +1325,7 @@ const memoryPlugin = {
|
|
|
1325
1325
|
name: "document_download",
|
|
1326
1326
|
label: "Document Download",
|
|
1327
1327
|
description:
|
|
1328
|
-
"Download a document (image, PDF, etc.) from MemoryLake and
|
|
1328
|
+
"Download a document (image, PDF, etc.) from MemoryLake and get a temporary download URL. After calling this tool, you MUST call the `message` tool with action='send' and media=<the returned URL> to deliver the file to the user.",
|
|
1329
1329
|
parameters: Type.Object({
|
|
1330
1330
|
documentId: Type.String({
|
|
1331
1331
|
description:
|
|
@@ -1345,13 +1345,10 @@ const memoryPlugin = {
|
|
|
1345
1345
|
content: [
|
|
1346
1346
|
{
|
|
1347
1347
|
type: "text",
|
|
1348
|
-
text: `Document ${documentId}
|
|
1348
|
+
text: `Document ${documentId} ready. Download URL (expires in ~20 minutes):\n${downloadUrl}\n\nYou MUST now call the message tool with action="send" and media set to this URL to deliver the file to the user.`,
|
|
1349
1349
|
},
|
|
1350
1350
|
],
|
|
1351
|
-
details: {
|
|
1352
|
-
media: { mediaUrl: downloadUrl },
|
|
1353
|
-
documentId,
|
|
1354
|
-
},
|
|
1351
|
+
details: { documentId },
|
|
1355
1352
|
};
|
|
1356
1353
|
} catch (err) {
|
|
1357
1354
|
return {
|