@roam-research/roam-tools-core 0.4.1 → 0.4.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.
@@ -8,8 +8,8 @@ export const FileGetSchema = z.object({
8
8
  });
9
9
  export const FileUploadSchema = z.object({
10
10
  filePath: z.string().optional().describe("Local file path (preferred) - server reads the file directly"),
11
- url: z.string().optional().describe("Remote URL to fetch the image from"),
12
- base64: z.string().optional().describe("Base64-encoded image data (fallback for sandboxed clients)"),
11
+ url: z.string().optional().describe("Remote URL to fetch the file from"),
12
+ base64: z.string().optional().describe("Base64-encoded file data (fallback for sandboxed clients)"),
13
13
  mimetype: z.string().optional().describe("MIME type (e.g., image/png, image/jpeg) - auto-detected if not provided"),
14
14
  filename: z.string().optional().describe("Original filename for reference - derived from path/url if not provided"),
15
15
  });
package/dist/tools.js CHANGED
@@ -65,7 +65,7 @@ const contentTools = [
65
65
  defineTool("open_main_window", "Navigate to a page or block in the main window." + GUIDELINES_NOTE, OpenMainWindowSchema, openMainWindow),
66
66
  defineTool("open_sidebar", "Open a page or block in the right sidebar." + GUIDELINES_NOTE, OpenSidebarSchema, openSidebar),
67
67
  defineTool("file_get", "Fetch a file hosted on Roam (handles decryption for encrypted graphs)." + GUIDELINES_NOTE, FileGetSchema, getFile),
68
- defineTool("file_upload", "Upload an image to Roam. Returns the Firebase storage URL. Usually you'll want to create a new block with the image as markdown: `![](url)`. Provide ONE of: filePath (preferred - local file, server reads directly), url (remote URL, server fetches), or base64 (raw data, fallback for sandboxed clients)." + GUIDELINES_NOTE, FileUploadSchema, uploadFile),
68
+ defineTool("file_upload", "Upload a file to Roam. Returns the Firebase storage URL. Usually you'll want to create a new block with the file as markdown: `![](url)`. Provide ONE of: filePath (preferred - local file, server reads directly), url (remote URL, server fetches), or base64 (raw data, fallback for sandboxed clients)." + GUIDELINES_NOTE, FileUploadSchema, uploadFile),
69
69
  defineTool("file_delete", "Delete a file hosted on Roam." + GUIDELINES_NOTE, FileDeleteSchema, deleteFile),
70
70
  ];
71
71
  export const tools = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roam-research/roam-tools-core",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Core library for Roam Research tools",
5
5
  "repository": {
6
6
  "type": "git",