@genspark/cli 1.14.1 → 1.15.0

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.
Files changed (55) hide show
  1. package/README.md +1 -1
  2. package/dist/commands/aidrive-contract.generated.d.ts +3 -0
  3. package/dist/commands/aidrive-contract.generated.d.ts.map +1 -0
  4. package/dist/commands/aidrive-contract.generated.js +555 -0
  5. package/dist/commands/aidrive-contract.generated.js.map +1 -0
  6. package/dist/commands/aidrive-operands.d.ts +2 -0
  7. package/dist/commands/aidrive-operands.d.ts.map +1 -1
  8. package/dist/commands/aidrive-operands.js +22 -26
  9. package/dist/commands/aidrive-operands.js.map +1 -1
  10. package/dist/commands/aidrive-upload.js +2 -1
  11. package/dist/commands/aidrive-upload.js.map +1 -1
  12. package/dist/commands/sb-box-session.d.ts +128 -0
  13. package/dist/commands/sb-box-session.d.ts.map +1 -0
  14. package/dist/commands/sb-box-session.js +463 -0
  15. package/dist/commands/sb-box-session.js.map +1 -0
  16. package/dist/config.d.ts +42 -1
  17. package/dist/config.d.ts.map +1 -1
  18. package/dist/config.js +43 -1
  19. package/dist/config.js.map +1 -1
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +192 -51
  22. package/dist/index.js.map +1 -1
  23. package/dist/object-args.d.ts +4 -0
  24. package/dist/object-args.d.ts.map +1 -0
  25. package/dist/object-args.js +34 -0
  26. package/dist/object-args.js.map +1 -0
  27. package/dist/serviceActions.d.ts +2 -0
  28. package/dist/serviceActions.d.ts.map +1 -1
  29. package/dist/serviceActions.js +13 -1
  30. package/dist/serviceActions.js.map +1 -1
  31. package/dist/types.d.ts +3 -0
  32. package/dist/types.d.ts.map +1 -1
  33. package/docs/skills.md +10 -9
  34. package/package.json +1 -1
  35. package/skills/gsk-aidrive/SKILL.md +104 -16
  36. package/skills/gsk-audio-transcribe/SKILL.md +5 -2
  37. package/skills/gsk-calendar-source/SKILL.md +44 -0
  38. package/skills/gsk-connector/SKILL.md +23 -9
  39. package/skills/gsk-create-task/SKILL.md +1 -1
  40. package/skills/gsk-genteam/SKILL.md +3 -1
  41. package/skills/gsk-github/SKILL.md +4 -3
  42. package/skills/gsk-gmail/SKILL.md +1 -1
  43. package/skills/gsk-google-drive/SKILL.md +6 -5
  44. package/skills/gsk-google-sheets/SKILL.md +1 -1
  45. package/skills/gsk-image-generation/SKILL.md +2 -1
  46. package/skills/gsk-meeting/SKILL.md +1 -1
  47. package/skills/gsk-notion/SKILL.md +2 -2
  48. package/skills/gsk-onedrive/SKILL.md +6 -4
  49. package/skills/gsk-outlook-calendar/SKILL.md +1 -1
  50. package/skills/gsk-outlook-email/SKILL.md +1 -1
  51. package/skills/gsk-sb-brain/SKILL.md +32 -21
  52. package/skills/gsk-second-brain/SKILL.md +44 -16
  53. package/skills/gsk-shared/SKILL.md +7 -1
  54. package/skills/gsk-sharepoint/SKILL.md +5 -4
  55. package/skills/gsk-video-generation/SKILL.md +6 -2
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: gsk-google-drive
3
3
  version: 1.0.0
4
- description: 'Google Drive file operations. Actions: list, search, read, upload, share,
5
- trash.'
4
+ description: 'Google Drive file operations. Actions: list, search, read, get_readable_url,
5
+ upload, share, trash.'
6
6
  metadata:
7
7
  category: general
8
8
  generated_by: genspark_tool_cli/generate_skills.py
@@ -18,7 +18,7 @@ metadata:
18
18
 
19
19
  > **Note:** a unified `gsk connector` flow is rolling out (see `../gsk-connector/SKILL.md`: `gsk connector tools <id>` / `gsk connector call <id> -t <tool>`) and may not be enabled for every account yet. THIS command remains fully supported — use it directly, and it stays the fallback whenever `gsk connector` is unavailable.
20
20
 
21
- Google Drive file operations. Actions: list, search, read, upload, share, trash.
21
+ Google Drive file operations. Actions: list, search, read, get_readable_url, upload, share, trash.
22
22
 
23
23
  ## Usage
24
24
 
@@ -50,7 +50,7 @@ children, and file authorization cannot override a lack of permission to trash.
50
50
 
51
51
  | Flag | Required | Description |
52
52
  |------|----------|-------------|
53
- | `<action>` (positional) | Yes | Action to perform. 'list': List files directly inside a Google Drive folder; 'search': Search files by name, type, or owner; 'read': Read and extract content from a file; 'upload': Upload a new file to Google Drive, or overwrite an existing one in place by passing its file_id (the ID, link, and shares are preserved); 'share': Grant access to a file (specific emails or anyone-with-link; app-created/opened files only under drive.file). Confirmation-gated: on a CLI with client-side confirmation the command runs as a single call after the [y/N] prompt (or --yes).; 'trash': Move a file or folder to the trash (recoverable within 30 days; uses the same connector credentials as upload; app-created/opened files only under drive.file). Confirmation-gated: on a CLI with client-side confirmation the command runs as a single call after the [y/N] prompt (or --yes). (string, one of: list, search, read, upload, share, trash) |
53
+ | `<action>` (positional) | Yes | Action to perform. 'list': List files directly inside a Google Drive folder; 'search': Search files by name, type, or owner; 'read': Read and extract content from a file; 'get_readable_url': Temporary one-hour URL streaming a file's original bytes (Range supported), or a Google Doc, Sheet, Slides deck or Drawing as a whole DOCX, XLSX, PPTX or PNG export (no Range), for tools that fetch by URL, such as ffmpeg; not for people; 'upload': Upload a new file to Google Drive, or overwrite an existing one in place by passing its file_id (the ID, link, and shares are preserved); 'share': Grant access to a file (specific emails or anyone-with-link; app-created/opened files only under drive.file). Confirmation-gated: on a CLI with client-side confirmation the command runs as a single call after the [y/N] prompt (or --yes).; 'trash': Move a file or folder to the trash (recoverable within 30 days; uses the same connector credentials as upload; app-created/opened files only under drive.file). Confirmation-gated: on a CLI with client-side confirmation the command runs as a single call after the [y/N] prompt (or --yes). (string, one of: list, search, read, get_readable_url, upload, share, trash) |
54
54
  | `--folder_id` | No | [list] Google Drive folder ID or folder URL. \| [search] Search within a specific folder for 'search' action. Accepts a folder ID or Google Drive folder URL. \| [upload] Google Drive folder ID to upload to. Optional, uploads to root if not specified. Ignored when 'file_id' is set. (string) |
55
55
  | `--folder_url` | No | [list] Google Drive folder URL. \| [search] Google Drive folder URL to list/search within. (string) |
56
56
  | `--mime_type` | No | [list] Optional MIME type filter. \| [search] Filter by MIME type for 'search' (e.g., 'application/pdf'). \| [upload] The MIME type of the file (optional, will be auto-detected from file_name extension). Examples: 'text/plain', 'text/csv', 'application/json', 'image/png'. (string) |
@@ -58,8 +58,9 @@ children, and file authorization cannot override a lack of permission to trash.
58
58
  | `--all_pages` | No | [list] List every page in the selected folder. Use for complete programmatic inventory; default false. (boolean) |
59
59
  | `--query` | No | [search] Use keywords simply, terms will be combined into advanced search query in the later process.For example, if user ask for 'tax related documents', just use 'tax' as the query,DO NOT use advanced search query like 'name contains 'tax'' or 'fullText contains 'tax''. Use '*' to list all authorized files, especially when folder_id is supplied. (string) |
60
60
  | `--owner` | No | [search] Filter by file owner (email address) for 'search' action (string) |
61
- | `--file_id` | No | [read] The ID of the file to read from Google Drive. \| [upload] Existing Google Drive file ID to OVERWRITE in place instead of creating a new file (from google_drive search/list/upload results). The content is replaced while the file ID, link, and existing shares are preserved — use this when the user wants to update a document they already have, not get a new one. \| [share] Google Drive file ID to share (from google_drive search/list/upload results). \| [trash] Google Drive file or folder ID to move to the trash. (string) |
61
+ | `--file_id` | No | [read] The ID of the file to read from Google Drive. \| [get_readable_url] Google Drive file ID (from google_drive search/list results). \| [upload] Existing Google Drive file ID to OVERWRITE in place instead of creating a new file (from google_drive search/list/upload results). The content is replaced while the file ID, link, and existing shares are preserved — use this when the user wants to update a document they already have, not get a new one. \| [share] Google Drive file ID to share (from google_drive search/list/upload results). \| [trash] Google Drive file or folder ID to move to the trash. (string) |
62
62
  | `--question` | No | [read] The question to answer about the file content. (string) |
63
+ | `--raw_file` | No | [read] Return a short-lived download of the original file without extracting or summarizing it. Google Docs, Slides and Sheets export as DOCX, PPTX and XLSX. Mutually exclusive with raw_content; ignores question. (boolean) |
63
64
  | `--raw_content` | No | [read] Return the complete converted document text (markdown) without question-answering. For programmatic consumers that need full fidelity; ignores 'question'. (boolean) |
64
65
  | `--content` | No | [upload] Text content to create as a file. Use this for creating text-based files (e.g., .txt, .md, .csv, .json, .html). Provide exactly one of 'content', 'file_path', or 'file_url'. (string) |
65
66
  | `--file_path` | No | [upload] Local path on the CLI machine. The CLI uploads it and sends 'file_url' to the server. Direct API callers must use 'file_url' or 'content'; backend file paths are not accepted. (string) |
@@ -38,7 +38,7 @@ gsk sheets [options]
38
38
  | `--initial_data` | No | [create] Optional inline initial data for the first sheet, as a 2D array where each inner array is a row. Via the gsk CLI, pass the whole array as ONE JSON string: --initial_data '[["Name","Age"],["Alice","30"]]'. Mutually exclusive with from_sandbox_path / from_aidrive_path / from_url. Prefer the from_* options when the data already exists as a file (CSV/TSV/XLSX/JSON), since 'initial_data' must round-trip through the LLM context. (array) |
39
39
  | `--from_sandbox_path` | No | [create] Absolute path inside the workflow sandbox (e.g. '/home/user/result.csv'). When set, the file is read from the sandbox and parsed into a 2D array instead of using 'initial_data'. Supported formats: csv, tsv, xlsx, json. Legacy binary .xls (BIFF) is NOT supported — re-save as .xlsx first. Mutually exclusive with from_aidrive_path / from_url / initial_data. \| [write] Absolute path inside the workflow sandbox (e.g. '/home/user/result.csv'). When set, the file is read from the sandbox and parsed into a 2D array instead of using 'values'. Supported formats: csv, tsv, xlsx, json. Legacy binary .xls (BIFF) is NOT supported — re-save as .xlsx first. Mutually exclusive with from_aidrive_path / from_url / values. \| [append] Absolute path inside the workflow sandbox (e.g. '/home/user/result.csv'). When set, the file is read from the sandbox and parsed into a 2D array instead of using 'values'. Supported formats: csv, tsv, xlsx, json. Legacy binary .xls (BIFF) is NOT supported — re-save as .xlsx first. Mutually exclusive with from_aidrive_path / from_url / values. (string) |
40
40
  | `--from_aidrive_path` | No | [create] Absolute path inside the user's AI-Drive (e.g. '/reports/sales.xlsx'). Read directly via the AI-Drive backend; the file is NOT loaded into the LLM context. Mutually exclusive with from_sandbox_path / from_url / initial_data. \| [write] Absolute path inside the user's AI-Drive (e.g. '/reports/sales.xlsx'). Read directly via the AI-Drive backend; the file is NOT loaded into the LLM context. Mutually exclusive with from_sandbox_path / from_url / values. \| [append] Absolute path inside the user's AI-Drive (e.g. '/reports/sales.xlsx'). Read directly via the AI-Drive backend; the file is NOT loaded into the LLM context. Mutually exclusive with from_sandbox_path / from_url / values. (string) |
41
- | `--from_url` | No | [create] HTTPS URL of a CSV/TSV/XLSX/JSON file. Accepts AI-Drive readable URLs, file-wrapper URLs, or any HTTPS link. Plain http:// is rejected; redirects are not followed. Mutually exclusive with from_sandbox_path / from_aidrive_path / initial_data. \| [write] HTTPS URL of a CSV/TSV/XLSX/JSON file. Accepts AI-Drive readable URLs, file-wrapper URLs, or any HTTPS link. Plain http:// is rejected; redirects are not followed. Mutually exclusive with from_sandbox_path / from_aidrive_path / values. \| [append] HTTPS URL of a CSV/TSV/XLSX/JSON file. Accepts AI-Drive readable URLs, file-wrapper URLs, or any HTTPS link. Plain http:// is rejected; redirects are not followed. Mutually exclusive with from_sandbox_path / from_aidrive_path / values. (string) |
41
+ | `--from_url` | No | [create] HTTPS URL of a CSV/TSV/XLSX/JSON file. Accepts AI-Drive readable URLs, file-wrapper URLs, or any HTTPS link. Plain http:// is rejected; hosts on private or internal networks are refused. Mutually exclusive with from_sandbox_path / from_aidrive_path / initial_data. \| [write] HTTPS URL of a CSV/TSV/XLSX/JSON file. Accepts AI-Drive readable URLs, file-wrapper URLs, or any HTTPS link. Plain http:// is rejected; hosts on private or internal networks are refused. Mutually exclusive with from_sandbox_path / from_aidrive_path / values. \| [append] HTTPS URL of a CSV/TSV/XLSX/JSON file. Accepts AI-Drive readable URLs, file-wrapper URLs, or any HTTPS link. Plain http:// is rejected; hosts on private or internal networks are refused. Mutually exclusive with from_sandbox_path / from_aidrive_path / values. (string) |
42
42
  | `--sheet_name` | No | [create] For xlsx sources only: which sheet to read. Defaults to the first sheet if omitted. Ignored for csv/tsv/json sources. \| [write] For xlsx sources only: which sheet to read. Defaults to the first sheet if omitted. Ignored for csv/tsv/json sources. \| [append] For xlsx sources only: which sheet to read. Defaults to the first sheet if omitted. Ignored for csv/tsv/json sources. (string) |
43
43
  | `--spreadsheet_id` | No | [read] The ID of the spreadsheet to read from. \| [write] The ID of the spreadsheet to write to. \| [append] The ID of the spreadsheet to append to. \| [export] The ID of the Google Sheets spreadsheet to export. (string) |
44
44
  | `--range` | No | [read] The A1 notation range to read (e.g., 'Sheet1!A1:D10', 'A1:B5'). Default: reads first sheet entirely. \| [write] The A1 notation range to write to (e.g., 'Sheet1!A1:D10'). The range should match the size of the data. Only the cells inside this range are touched — pass the smallest sheet-qualified range that covers exactly the intended change, never a wider one 'to be safe'; a wider range is the only way this tool can overwrite a collaborator's untouched cells, formulas, or formatting on a shared spreadsheet. \| [append] The A1 notation of a range to search for data table. New rows will be appended after the last row in this table. Example: 'Sheet1!A:D' or 'Sheet1' (string) |
@@ -29,7 +29,8 @@ gsk img [options]
29
29
 
30
30
  | Flag | Required | Description |
31
31
  |------|----------|-------------|
32
- | `-m`, `--model` | No | If this parameter is omitted, nano-banana-2-flash-lite is used. Pick ONLY a model described below; never pick an undescribed model name unless the user explicitly asks for it by name. gpt-image-2: GPT Image 2 - Latest OpenAI image model. Superior text rendering, editing, and face preservation. Supports text-to-image and image editing with multi-image input. nano-banana-pro: [GEMINI NANO BANANA PRO] State of the Art (SOTA) for both generation and image editing. Multi-image fusion: Combine different images into one seamless new visual. Character & style consistency: Maintain the same subject or visual style across multiple generations. Conversational editing: Edit images with simple, natural language instructions. Perfect for creative use cases, marketing, training, advertising. Supports up to 14 images as reference input. Supports high resolution output up to 2K/4K. nano-banana-2: [GEMINI NANO BANANA 2] Gemini 3.1 Flash Image. Fast and efficient with advanced reasoning. Multi-image fusion with up to 14 reference images. Supports 0.5K/1K/2K/4K resolution. Google Search grounding for real-time data. Best for high-volume, speed-optimized workflows. fal-ai/bytedance/seedream/v5/lite: Bytedance Seedream v5 Lite model for text-to-image, image-to-image (single and multiple image editing) generation with native 2K resolution and excellent text layout.fal-ai/bytedance/seedream/v5/pro: Bytedance Seedream 5.0 Pro - flagship photorealistic model for text-to-image and multi-image editing (up to 10 reference images). High-density text/infographic layout, region-precise edits, native text in 14 languages, up to 2K output. xai/grok-imagine-image: xAI Grok Imagine Image 2.0 - top-ranked text-to-image and image editing (up to 3 reference images). Strong photorealism and prompt adherence, up to 2K output. qwen-image-3: Qwen Image 3 - Alibaba's latest image model for text-to-image and reference-image editing (1-3 reference images). Superior Chinese & English text rendering, precise prompt adherence, identity-preserving edits. Best for posters, bilingual typography, and instruction-based edits. fal-ai/flux-2-pro: Flux 2 Pro model - higher quality version of Flux 2 with professional-grade output. Enhanced realism, superior text generation, and advanced editing capabilities. Ideal for high-quality realistic images and complex editing tasks.fal-ai/z-image/turbo: Z-Image Turbo model optimized for speed without sacrificing quality. Supports both text-to-image and image-to-image modes. Perfect for quick iterations, bulk generation, style transfer, and cost-effective projects.bbox-segment: A model for extracting subjects from images based on bbox region.fal-bria-rmbg: A model specialized for remove background from image. Should prioritize this tool if the user wants to remove background from image. fal-ai/recraft-clarity-upscale: A model specialized for upscale image. fal-ai/image-editing/text-removal: A specialized model for removing text and watermarks from images. Automatically detects and removes text while preserving the background and other visual elements. Use when users want to clean images, remove watermarks, or eliminate text overlays. flux-pro/outpaint: A model specialized for expand image to a specific aspect ratio. nano-banana-2-flash-lite: [GEMINI NANO BANANA 2 FLASH LITE] Fast, lightweight Gemini image model for text-to-image and image editing with multi-image input. Native 1K output. Best for speed-sensitive, high-volume workflows. (string, one of: gpt-image-2, nano-banana-pro, nano-banana-2, fal-ai/bytedance/seedream/v5/lite, fal-ai/bytedance/seedream/v5/pro, xai/grok-imagine-image, qwen-image-3, fal-ai/flux-2-pro, fal-ai/z-image/turbo, bbox-segment, fal-bria-rmbg, fal-ai/recraft-clarity-upscale, fal-ai/image-editing/text-removal, flux-pro/outpaint, nano-banana-2-flash-lite) |
32
+ | `-m`, `--model` | No | If this parameter is omitted, nano-banana-2-flash-lite is used. Pick ONLY a model described below; never pick an undescribed model name unless the user explicitly asks for it by name. gpt-image-2: GPT Image 2 - Latest OpenAI image model. Superior text rendering, editing, and face preservation. Supports text-to-image and image editing with multi-image input. fal-ai/bytedance/seedream/v5/lite: Bytedance Seedream v5 Lite model for text-to-image, image-to-image (single and multiple image editing) generation with native 2K resolution and excellent text layout.fal-ai/bytedance/seedream/v5/pro: Bytedance Seedream 5.0 Pro - flagship photorealistic model for text-to-image and multi-image editing (up to 10 reference images). High-density text/infographic layout, region-precise edits, native text in 14 languages, up to 2K output. xai/grok-imagine-image: xAI Grok Imagine Image 2.0 - top-ranked text-to-image and image editing (up to 3 reference images). Strong photorealism and prompt adherence, up to 2K output. qwen-image-3: Qwen Image 3 - Alibaba's latest image model for text-to-image and reference-image editing (1-3 reference images). Superior Chinese & English text rendering, precise prompt adherence, identity-preserving edits. Best for posters, bilingual typography, and instruction-based edits. fal-ai/flux-3: BFL FLUX 3 Image - newest Black Forest Labs model with native 2K/4K output, precise layout control and improved text rendering. Text-to-image and editing with up to 10 reference images. Ideal for posters, ads, infographics and layout-sensitive realistic images. fal-ai/z-image/turbo: Z-Image Turbo model optimized for speed without sacrificing quality. Supports both text-to-image and image-to-image modes. Perfect for quick iterations, bulk generation, style transfer, and cost-effective projects.bbox-segment: A model for extracting subjects from images based on bbox region.fal-bria-rmbg: A model specialized for remove background from image. Should prioritize this tool if the user wants to remove background from image. fal-ai/recraft-clarity-upscale: A model specialized for upscale image. fal-ai/image-editing/text-removal: A specialized model for removing text and watermarks from images. Automatically detects and removes text while preserving the background and other visual elements. Use when users want to clean images, remove watermarks, or eliminate text overlays. flux-pro/outpaint: A model specialized for expand image to a specific aspect ratio. nano-banana-2-flash-lite: [GEMINI NANO BANANA 2 FLASH LITE] Fast, lightweight Gemini image model for text-to-image and image editing with multi-image input. Native 1K output. Best for speed-sensitive, high-volume workflows. nano-banana-2.1: [GEMINI NANO BANANA 2.1] Google's newest Gemini image model: a quality step up from Nano Banana 2 for text-to-image and editing with up to 14 reference images, 1K/2K/4K output and a selectable thinking depth (thinking_level). Pick it when the user asks for it by name or wants the best Gemini result. (string, one of: gpt-image-2, fal-ai/bytedance/seedream/v5/lite, fal-ai/bytedance/seedream/v5/pro, xai/grok-imagine-image, qwen-image-3, fal-ai/flux-3, fal-ai/z-image/turbo, bbox-segment, fal-bria-rmbg, fal-ai/recraft-clarity-upscale, fal-ai/image-editing/text-removal, flux-pro/outpaint, nano-banana-2-flash-lite, nano-banana-2.1) |
33
+ | `--thinking_level` | No | nano-banana-2.1 only (ignored by other models): how much the model thinks before rendering. 'medium' is the default when omitted; 'minimal' is fastest; 'high' spends more reasoning on complex, multi-constraint prompts. Same price. (string, one of: minimal, medium, high) |
33
34
  | `<query>` (positional) | No | Detailed description of the image to generate. The prompt should be in English.However, any specific text that should appear within the image does not need to be translated.(e.g., 'A futuristic cityscape with flying cars and neon lights at night'). Omit when passing the prompt by `query_file` instead. (string) |
34
35
  | `--query_file` | No | Optional. Repo-relative path to a UTF-8 text file containing the prompt, used verbatim in place of `query` (lets you pass a long prompt by path instead of inlining it). Requires `repo_id`. When set, `query` may be omitted. (string) |
35
36
  | `--bbox` | No | BBox of the target object, for bbox segmentation modelFormat: [x1, y1, x2, y2], x1 and y1 are the top-left corner coordinates, x2 and y2 are the bottom-right corner coordinates. (array) |
@@ -36,8 +36,8 @@ gsk meeting [options]
36
36
  | `<action>` (positional) | Yes | Action to perform. 'list': List meeting notes by creation date; 'search': Search meeting notes by keyword; 'get': Get details of a specific meeting note (string, one of: list, search, get) |
37
37
  | `--page_size` | No | [list] Number of results per page. Default: 20. Max: 50. \| [search] Number of results per page. Default: 20. Max: 50. (integer) |
38
38
  | `--continuation_token` | No | [list] Token for fetching the next page of results. Returned from a previous list call. (string) |
39
+ | `--date_from` | No | [list] Only notes dated on or after this day (YYYY-MM-DD). Keep it unchanged while paging with continuation_token. \| [search] Filter meetings after this date (ISO format: YYYY-MM-DD). (string) |
39
40
  | `--keyword` | No | [search] Search term to find in meeting notes. (string) |
40
- | `--date_from` | No | [search] Filter meetings after this date (ISO format: YYYY-MM-DD). (string) |
41
41
  | `--date_to` | No | [search] Filter meetings before this date (ISO format: YYYY-MM-DD). (string) |
42
42
  | `--meeting_source` | No | [search] Filter by calendar source. (string, one of: google, outlook) |
43
43
  | `--sort_by` | No | [search] Sort order. 'relevance' for best match first, 'created_at' for newest first (default). (string, one of: created_at, relevance) |
@@ -29,9 +29,9 @@ gsk notion [options]
29
29
 
30
30
  | Flag | Required | Description |
31
31
  |------|----------|-------------|
32
- | `<action>` (positional) | Yes | Action to perform. 'search': Search pages and databases; 'read': Read content from a page; 'create': Create a new page (string, one of: search, read, create) |
32
+ | `<action>` (positional) | Yes | Action to perform. 'search': Search pages and databases; 'read': Read a page and its nested blocks. If content_complete is false, download raw_file.download_url and read it in chunks before summarizing; warnings identify content the API could not fully render.; 'create': Create a new page (string, one of: search, read, create) |
33
33
  | `--query` | No | [search] Query to search for in Notion pages. Leave empty or omit to list all available documents. (string) |
34
- | `--page_id` | No | [read] The ID of the Notion page to read and summarize. (string) |
34
+ | `--page_id` | No | [read] The ID of the Notion page to read. (string) |
35
35
  | `--title` | No | [create] The title of the new page. (string) |
36
36
  | `--content` | No | [create] The content of the page in markdown format. Supports headings, lists, code blocks, links, etc. (string) |
37
37
  | `--parent_id` | No | [create] The ID of the parent page or database where the new page will be created. Use notion_search to find available pages/databases first. (string) |
@@ -1,7 +1,8 @@
1
1
  ---
2
2
  name: gsk-onedrive
3
3
  version: 1.0.0
4
- description: 'OneDrive file operations. Actions: list, search, read, upload, share.'
4
+ description: 'OneDrive file operations. Actions: list, search, read, get_readable_url,
5
+ upload, share.'
5
6
  metadata:
6
7
  category: general
7
8
  generated_by: genspark_tool_cli/generate_skills.py
@@ -17,7 +18,7 @@ metadata:
17
18
 
18
19
  > **Note:** a unified `gsk connector` flow is rolling out (see `../gsk-connector/SKILL.md`: `gsk connector tools <id>` / `gsk connector call <id> -t <tool>`) and may not be enabled for every account yet. THIS command remains fully supported — use it directly, and it stays the fallback whenever `gsk connector` is unavailable.
19
20
 
20
- OneDrive file operations. Actions: list, search, read, upload, share.
21
+ OneDrive file operations. Actions: list, search, read, get_readable_url, upload, share.
21
22
 
22
23
  ## Usage
23
24
 
@@ -29,15 +30,16 @@ gsk onedrive [options]
29
30
 
30
31
  | Flag | Required | Description |
31
32
  |------|----------|-------------|
32
- | `<action>` (positional) | Yes | Action to perform. 'list': List files in a folder; 'search': Search files; 'read': Read and extract content from a file; 'upload': Upload a file (local path, file-wrapper URL, AI Drive path, or text content) to OneDrive; 'share': Create a sharing link (view/edit/embed; anonymous or organization scope) for a file or folder. Confirmation-gated: on a CLI with client-side confirmation the command runs as a single call after the [y/N] prompt (or --yes). (string, one of: list, search, read, upload, share) |
33
+ | `<action>` (positional) | Yes | Action to perform. 'list': List files in a folder; 'search': Search files; 'read': Read and extract content from a file; 'get_readable_url': Get a short-lived (at most 1 hour) pre-authenticated download URL for a file, for streaming it with HTTP Range requests and no auth header. Read-only; never print or share the URL; 'upload': Upload a file (local path, file-wrapper URL, AI Drive path, or text content) to OneDrive; 'share': Create a sharing link (view/edit/embed; anonymous or organization scope) for a file or folder. Confirmation-gated: on a CLI with client-side confirmation the command runs as a single call after the [y/N] prompt (or --yes). (string, one of: list, search, read, get_readable_url, upload, share) |
33
34
  | `--onedrive_url` | No | [list] A OneDrive URL to list files from. Can be a sharing link, folder link, or any OneDrive URL. (string) |
34
35
  | `--folder_id` | No | [list] The folder item ID to list contents of. Get folder IDs from previous onedrive_list_files or onedrive_search results. \| [upload] Target folder item ID (from onedrive_list_files or onedrive_search). If omitted, ``folder_path`` is used; if both are omitted, the upload goes to the OneDrive root. (string) |
35
36
  | `--folder_path` | No | [list] The folder path relative to OneDrive root. Example: 'Documents/Projects' to list files in that subfolder. \| [upload] Target folder path relative to the OneDrive root, e.g. 'Documents/Reports'. The folder must already exist. Ignored when ``folder_id`` is provided. (string) |
36
37
  | `--limit` | No | [list] Maximum number of items to return (1-200). Default: 50 (integer) |
37
38
  | `--all_pages` | No | [list] List every page in this folder. Use for complete programmatic inventory; default false. (boolean) |
38
39
  | `--query` | No | [search] The search query string. **Query Behavior**: • Spaces = AND: 'project report' finds files with BOTH terms • OR operator: 'project OR report' finds files with EITHER term • Empty string: '*' lists all files • Wildcards: 'report*' finds files starting with 'report' • Examples: 'budget.xlsx', 'meeting OR conference', '*.pdf', 'project 2024' (string) |
39
- | `--file_id` | No | [read] The ID of the file OR the OneDrive/SharePoint URL to read from OneDrive or SharePoint. Can be either a file ID (like '01W56PINYRO3...') or a full OneDrive/SharePoint URL (like 'https://domain-my.sharepoint.com/personal/user/Documents/file.pdf' or SharePoint driveItem IDs). For Teams attachments, use the 'file_id' value from Teams search results onedrive_file_params. \| [share] OneDrive item ID of the file or folder to share (from onedrive_list_files or onedrive_search). Mutually exclusive with ``file_path``. (string) |
40
+ | `--file_id` | No | [read] The ID of the file OR the OneDrive/SharePoint URL to read from OneDrive or SharePoint. Can be either a file ID (like '01W56PINYRO3...') or a full OneDrive/SharePoint URL (like 'https://domain-my.sharepoint.com/personal/user/Documents/file.pdf' or SharePoint driveItem IDs). For Teams attachments, use the 'file_id' value from Teams search results onedrive_file_params. \| [get_readable_url] The file ID or the file's OneDrive/SharePoint URL: the same forms the read action accepts. \| [share] OneDrive item ID of the file or folder to share (from onedrive_list_files or onedrive_search). Mutually exclusive with ``file_path``. (string) |
40
41
  | `--question` | No | [read] The question to answer about the file content. (string) |
42
+ | `--raw_file` | No | [read] Return a short-lived download of the original file without extracting or summarizing it. Google Docs, Slides and Sheets export as DOCX, PPTX and XLSX. Mutually exclusive with raw_content; ignores question. (boolean) |
41
43
  | `--raw_content` | No | [read] Return the complete converted document text (markdown) without question-answering. For programmatic consumers that need full fidelity; ignores 'question'. (boolean) |
42
44
  | `--file_path` | No | [upload] A Genspark file-wrapper URL, an AI Drive path (aidrive://, /aidrive/ or /mnt/aidrive/), or a local file uploaded automatically by the CLI. Direct API callers must upload local files first. \| [share] Path of the item relative to the OneDrive root, e.g. 'Documents/report.pdf'. Ignored when ``file_id`` is provided. (string) |
43
45
  | `--content` | No | [upload] Text content to upload as the file body (encoded as UTF-8). Useful for creating .txt/.md/.json/.csv files without a local copy. Mutually exclusive with ``file_path``. (string) |
@@ -30,7 +30,7 @@ gsk outlook_calendar [options]
30
30
 
31
31
  | Flag | Required | Description |
32
32
  |------|----------|-------------|
33
- | `<action>` (positional) | Yes | Action to perform. 'list': List upcoming calendar events. Returns at most 'limit' (default 20) events; the response sets truncated=true when more events exist in the window; 'free_busy': Query free/busy availability for people (any org member) in a time window (find open meeting slots); 'create': Create a new calendar event. By default this returns a LOCAL DRAFT only — nothing lands in the calendar until the user confirms it in the Genspark UI. Callers without a confirmation UI (e.g. gsk) must confirm the create (gsk: `--yes`) to write the event directly. Confirmation-gated: on a CLI with client-side confirmation the command runs as a single call after the [y/N] prompt (or --yes).; 'respond': RSVP (accept / decline / tentative) to an existing invite. Supports --comment and --proposed_new_time (Outlook-only counter-proposal); 'modify': Modify (Graph PATCH /me/events/{id}) an existing event in place without delete+create; 'delete': Delete a calendar event. Confirmation-gated: on a CLI with client-side confirmation the command runs as a single call after the [y/N] prompt (or --yes). (string, one of: list, free_busy, create, respond, modify, delete) |
33
+ | `<action>` (positional) | Yes | Action to perform. 'list': List upcoming calendar events. Returns at most 'limit' (default 20) events; the response sets truncated=true when more events exist in the window. Each event's 'attendees' summary includes every attendee's RSVP response (accepted / declined / tentative / needsAction / organizer) plus their name, email and required/optional type, so you can answer who accepted or declined.; 'free_busy': Query free/busy availability for people (any org member) in a time window (find open meeting slots); 'create': Create a new calendar event. By default this returns a LOCAL DRAFT only — nothing lands in the calendar until the user confirms it in the Genspark UI. Callers without a confirmation UI (e.g. gsk) must confirm the create (gsk: `--yes`) to write the event directly. Confirmation-gated: on a CLI with client-side confirmation the command runs as a single call after the [y/N] prompt (or --yes).; 'respond': RSVP (accept / decline / tentative) to an existing invite. Supports --comment and --proposed_new_time (Outlook-only counter-proposal); 'modify': Modify (Graph PATCH /me/events/{id}) an existing event in place without delete+create; 'delete': Delete a calendar event. Confirmation-gated: on a CLI with client-side confirmation the command runs as a single call after the [y/N] prompt (or --yes). (string, one of: list, free_busy, create, respond, modify, delete) |
34
34
  | `--filter_query` | No | [list] Text to filter calendar events by subject. Empty for listing all events in the time range. (string) |
35
35
  | `--time_min` | No | [list] Optional. Start time for the calendar view (ISO 8601 timestamp). Defaults to 30 days ago. (string) |
36
36
  | `--time_max` | No | [list] Optional. End time for the calendar view (ISO 8601 timestamp). Defaults to 60 days from now. (string) |
@@ -79,7 +79,7 @@ gsk outlook [options]
79
79
  | `--client_send_id` | No | [send] Optional stable idempotency key. Normally generated automatically for scheduled and interactive sends. (string) |
80
80
  | `--force_resend` | No | [send] Set true only when the user explicitly wants another copy of an otherwise identical email. This bypasses the 10-minute interactive-send deduplication window. (boolean, default: `False`) |
81
81
  | `--attachments` | No | [send] Optional file attachments. Each item is either a local file path (read inline by the gsk CLI — the bytes ride in the request body as base64 and are not persisted to blob storage) or an already-hosted URL (file-wrapper URL or other public https). Files are delivered as real email attachments (not links): inline base64 for items ≤3 MB, Microsoft Graph upload session for larger Outlook attachments. CLI alias: --attach / --attachment (repeatable). CLI inline cap: 5 MiB per local file — larger files must be uploaded via 'gsk upload' first and passed as a URL. Per-message raw-payload cap: 18 MiB for Gmail (Gmail's 25 MB send cap is on the base64-encoded RFC 822 message; 18 MiB raw leaves headroom for ~33% encoding overhead) and 150 MB for Outlook (via Graph upload session). \| [draft] Optional file attachments. Each item is either a local file path (read inline by the gsk CLI — the bytes ride in the request body as base64 and are not persisted to blob storage) or an already-hosted URL (file-wrapper URL or other public https). Files are delivered as real email attachments (not links): inline base64 for items ≤3 MB, Microsoft Graph upload session for larger Outlook attachments. CLI alias: --attach / --attachment (repeatable). CLI inline cap: 5 MiB per local file — larger files must be uploaded via 'gsk upload' first and passed as a URL. Per-message raw-payload cap: 18 MiB for Gmail (Gmail's 25 MB send cap is on the base64-encoded RFC 822 message; 18 MiB raw leaves headroom for ~33% encoding overhead) and 150 MB for Outlook (via Graph upload session). \| [reply] Optional file attachments. Each item is either a local file path (read inline by the gsk CLI — the bytes ride in the request body as base64 and are not persisted to blob storage) or an already-hosted URL (file-wrapper URL or other public https). Files are delivered as real email attachments (not links): inline base64 for items ≤3 MB, Microsoft Graph upload session for larger Outlook attachments. CLI alias: --attach / --attachment (repeatable). CLI inline cap: 5 MiB per local file — larger files must be uploaded via 'gsk upload' first and passed as a URL. Per-message raw-payload cap: 18 MiB for Gmail (Gmail's 25 MB send cap is on the base64-encoded RFC 822 message; 18 MiB raw leaves headroom for ~33% encoding overhead) and 150 MB for Outlook (via Graph upload session). \| [reply_draft] Optional file attachments. Each item is either a local file path (read inline by the gsk CLI — the bytes ride in the request body as base64 and are not persisted to blob storage) or an already-hosted URL (file-wrapper URL or other public https). Files are delivered as real email attachments (not links): inline base64 for items ≤3 MB, Microsoft Graph upload session for larger Outlook attachments. CLI alias: --attach / --attachment (repeatable). CLI inline cap: 5 MiB per local file — larger files must be uploaded via 'gsk upload' first and passed as a URL. Per-message raw-payload cap: 18 MiB for Gmail (Gmail's 25 MB send cap is on the base64-encoded RFC 822 message; 18 MiB raw leaves headroom for ~33% encoding overhead) and 150 MB for Outlook (via Graph upload session). \| [forward] Optional file attachments. Each item is either a local file path (read inline by the gsk CLI — the bytes ride in the request body as base64 and are not persisted to blob storage) or an already-hosted URL (file-wrapper URL or other public https). Files are delivered as real email attachments (not links): inline base64 for items ≤3 MB, Microsoft Graph upload session for larger Outlook attachments. CLI alias: --attach / --attachment (repeatable). CLI inline cap: 5 MiB per local file — larger files must be uploaded via 'gsk upload' first and passed as a URL. Per-message raw-payload cap: 18 MiB for Gmail (Gmail's 25 MB send cap is on the base64-encoded RFC 822 message; 18 MiB raw leaves headroom for ~33% encoding overhead) and 150 MB for Outlook (via Graph upload session). \| [group_reply] Optional file attachments. Each item is either a local file path (read inline by the gsk CLI — the bytes ride in the request body as base64 and are not persisted to blob storage) or an already-hosted URL (file-wrapper URL or other public https). Files are delivered as real email attachments (not links): inline base64 for items ≤3 MB, Microsoft Graph upload session for larger Outlook attachments. CLI alias: --attach / --attachment (repeatable). CLI inline cap: 5 MiB per local file — larger files must be uploaded via 'gsk upload' first and passed as a URL. Per-message raw-payload cap: 18 MiB for Gmail (Gmail's 25 MB send cap is on the base64-encoded RFC 822 message; 18 MiB raw leaves headroom for ~33% encoding overhead) and 150 MB for Outlook (via Graph upload session). (array) |
82
- | `--body_type` | No | [draft] Body format: 'html' (default) or 'text'. (string) |
82
+ | `--body_type` | No | [draft] Body format: 'html' (default) or 'text'. (string, one of: html, text, default: `html`) |
83
83
  | `--from_address` | No | [draft] Optional 'From:' identity to send AS — Gmail verified alias, Outlook proxyAddress / mail-enabled group, or a granted SendAs / on-behalf address. Must be an address the from-account is authorized to send as (see 'send_as' on /api/ai-inbox/mailbox/accounts). For Gmail this becomes the draft's MIME 'From:' header; for Outlook the saved draft stays as the from-account and the alias is applied by the eventual send call. (string) |
84
84
  | `--prompt` | No | [draft] Optional instruction describing the email to write, in the sender's own voice using their Email Brain (persona plus their handling and writing rules) — e.g. 'ask Ana to move the review to Friday, apologize for the short notice'. Use INSTEAD of 'body' to have the body written for you, or TOGETHER WITH 'body' to revise that text per the instruction (everything the instruction does not ask to change is preserved). Recipients and attachments are never inferred from the instruction — pass them explicitly. Omit to commit 'body' exactly as given. (string) |
85
85
  | `--message_id` | No | [reply] The Outlook message ID to reply to. \| [forward] The Outlook message ID to forward. \| [delete] (Legacy, single message) The Outlook message ID to delete. Prefer message_ids for batches. \| [archive] (Deprecated, use message_ids) A single Outlook message ID to archive \| [move] (Legacy, single message) The Outlook message ID to move. Prefer message_ids for batches. \| [mark_as_read] (Deprecated, use message_ids) A single Outlook message ID to mark \| [add_category] (Legacy, single message) The Outlook message ID to add the category to. Prefer message_ids. \| [remove_category] (Legacy, single message) The Outlook message ID to remove the category from. Prefer message_ids. \| [get_attachment] The Outlook message ID containing the attachment (string) |
@@ -1,14 +1,9 @@
1
1
  ---
2
2
  name: gsk-sb-brain
3
3
  version: 1.0.0
4
- description: 'Unified read-only access to the user''s Second Brain — notes, emails,
5
- meetings, and connected knowledge sources. Identify repos by source name (memo,
6
- gmail, outlook, meeting, notion) instead of repo IDs. Actions: list-repos, ls, read,
7
- grep, log. Typical flow: list-repos → see available sources; grep -q <pattern> →
8
- search across all sources (or -s <source> for one); read -s <hit.source> --repo_id
9
- <hit.repo_id> -p <hit.path> → open the exact file a grep or ls hit returned. list-repos
10
- also returns a content description and physical clone URL for each visible source.
11
- Read-only; does not modify files.'
4
+ description: 'Discover, search and read Second Brain Notes: personal notes and uploads,
5
+ archived email, meeting records, Notion imports and past conversations. Browse source
6
+ repositories and file trees, read original files, and inspect revision history.'
12
7
  metadata:
13
8
  category: general
14
9
  generated_by: genspark_tool_cli/generate_skills.py
@@ -22,9 +17,9 @@ metadata:
22
17
 
23
18
  **PREREQUISITE:** Read `../gsk-shared/SKILL.md` for auth, global flags, and security rules.
24
19
 
25
- **THEN READ:** `../gsk-second-brain/SKILL.md` — it says what this command is part of and when to reach for it. This file keeps the flags.
20
+ **SOURCE DISCOVERY:** `../gsk-second-brain/SKILL.md` explains Notes sources and layouts. With a known source and file, use the commands below directly; consult that guide for source discovery and shared workflows.
26
21
 
27
- Unified read-only access to the user's Second Brain — notes, emails, meetings, and connected knowledge sources. Identify repos by source name (memo, gmail, outlook, meeting, notion) instead of repo IDs. Actions: list-repos, ls, read, grep, log. Typical flow: list-repos → see available sources; grep -q <pattern> → search across all sources (or -s <source> for one); read -s <hit.source> --repo_id <hit.repo_id> -p <hit.path> → open the exact file a grep or ls hit returned. list-repos also returns a content description and physical clone URL for each visible source. Read-only; does not modify files.
22
+ Discover, search and read Second Brain Notes: personal notes and uploads, archived email, meeting records, Notion imports and past conversations. Browse source repositories and file trees, read original files, and inspect revision history.
28
23
 
29
24
  ## Usage
30
25
 
@@ -34,16 +29,32 @@ gsk sb-brain [options]
34
29
 
35
30
  ## What this command reads
36
31
 
37
- `gsk sb-brain` opens the **Notes** half of the user's Second Brain — their
38
- notes, archived mail, meeting notes, Notion import, and past Genspark
39
- conversations. The map of the whole Second Brain (Notes + Drive, which door
40
- opens which part, how to read, write and edit) is `../gsk-second-brain/SKILL.md`;
41
- read it first. Two details that belong to this command alone:
32
+ `gsk sb-brain` opens the **Notes** half of the user's Second Brain: personal
33
+ notes and uploads, archived email, meeting records, Notion imports and past
34
+ Genspark conversations. Available personal and team sources appear in
35
+ `list-repos` with their mount status.
42
36
 
43
- - `grep` is a fixed string, case-insensitive — not a regex. Use a short
44
- distinctive keyword; a long phrase must match a single line exactly.
45
- - `read` takes the hit's `repo_id` (`--repo_id <hit.repo_id>`); without it a
46
- source with several repos (two mailboxes) opens the first one.
37
+ | Task | Action |
38
+ |---|---|
39
+ | Discover source repositories | `list-repos` |
40
+ | Browse folders and files in a source | `ls -s <source> -p <path>` |
41
+ | Find original passages | `grep -s <source> -q "<short keyword>"` |
42
+ | Read a selected file or search hit | `read -s <source> --repo_id <repo_id> -p <path>` |
43
+ | Inspect a source's revision history | `log -s <source>` |
44
+
45
+ Known source/file references go directly to `read`. For source layouts,
46
+ profiles and Notes writing workflows, see `../gsk-second-brain/SKILL.md`.
47
+
48
+ - `grep` uses fixed string, case-insensitive matching. Use a short distinctive
49
+ keyword; a long phrase matches a single line exactly.
50
+ - Open a search hit with `read -s <hit.source> --repo_id <hit.repo_id> --ref <hit.ref> -p <hit.path>`.
51
+ The `repo_id` selects the account when a source contains several repositories.
52
+ - `grep` reports completion and errors per repository in `repos`. For a needed
53
+ gap, retry the affected repository with `--repo_id` and a narrow
54
+ query or path; `truncated` marks the shared result cap.
55
+
56
+ `read`, `ls` and `log` identify the resolved `source`, `repo_id` and `ref`.
57
+ A file read also includes its `path` and commit `head` alongside the content.
47
58
 
48
59
  ## Flags
49
60
 
@@ -53,8 +64,8 @@ read it first. Two details that belong to this command alone:
53
64
  | `-s`, `--source` | No | Source name: memo, gmail, outlook, meeting, notion, team, custom, project_history. Required for ls, read, log. Optional for grep (omit to search ALL mounted sources). (string) |
54
65
  | `-p`, `--path` | No | File or directory path within the source repo. Used by ls (optional, defaults to root), read (required) and grep (optional directory prefix that confines the search). (string) |
55
66
  | `-q`, `--query` | No | Search text for grep (fixed string, case-insensitive; NOT a regex). Required for grep. Use a short distinctive keyword — a long phrase must match a single line exactly. (string) |
56
- | `--ref` | No | Git ref (branch or commit SHA). Defaults to main. (string) |
57
- | `--repo_id` | No | Disambiguate when a source has multiple repos (e.g. two Gmail accounts). Get from list-repos. Optional; defaults to first match. (string) |
67
+ | `--ref` | No | Git ref (branch or commit SHA). Defaults to main. Reuse a grep match's ref to read its file. (string) |
68
+ | `--repo_id` | No | Repository ID from list-repos or a grep match. Pass the match's repo_id when reading its file. When omitted, selects the source's first repository. (string) |
58
69
  | `--limit` | No | Max results for log (default 20). (integer) |
59
70
 
60
71
  ## See Also
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: gsk-second-brain
3
3
  version: 0.2.0
4
- description: "What the user's Second Brain is (Notes + Drive, theirs and their team's), where each kind of thing lives, how to read, write and edit it through `gsk sb-brain`, `gsk sb-git` and `gsk drive`, and how a document card in a GenTeam conversation is read. Read this before any Second Brain task; the per-command references (gsk-sb-brain, gsk-aidrive) hold the flags."
4
+ description: "Second Brain (Notes + Drive): where personal and team content lives, how to read, write and edit it, and how to read the content of document cards in GenTeam conversations. Command details live in gsk-sb-brain and gsk-aidrive."
5
5
  metadata:
6
6
  category: foundation
7
7
  requires:
@@ -13,10 +13,15 @@ metadata:
13
13
 
14
14
  **PREREQUISITE:** Read `../gsk-shared/SKILL.md` for auth, global flags, and security rules.
15
15
 
16
- This skill is the map. It tells you what the Second Brain is, where things live, and which command reaches which part. Flags and actions live in the two command references it points to:
16
+ This guide maps **Notes** and **Drive**: where content lives and how to read,
17
+ write and edit it, including reading documents shared as cards in GenTeam.
18
+ Command details:
17
19
 
18
- - `../gsk-sb-brain/SKILL.md` — reading Notes
19
- - `../gsk-aidrive/SKILL.md` — reading and writing Drive
20
+ - `../gsk-sb-brain/SKILL.md` — search and read Notes, browse sources and revision history.
21
+ - `../gsk-aidrive/SKILL.md` — search, read and manage Drive files.
22
+
23
+ With a known source or selected file, open its command guide directly. For work
24
+ across sources or shared documents, start with the relevant section here.
20
25
 
21
26
  ## 1. What the Second Brain is
22
27
 
@@ -25,7 +30,7 @@ The user's Second Brain has two halves:
25
30
  | Half | What it holds | Read with | Write with |
26
31
  |---|---|---|---|
27
32
  | **Notes** | What the user knew, wrote, received or decided: their notes and uploads, archived mail, meeting notes, Notion imports, past Genspark conversations, and the memory you keep about them | `gsk sb-brain` | `gsk sb-git commit` |
28
- | **Drive** | Their files: documents, decks, sheets, PDFs, media, folders | `gsk drive` | `gsk drive` |
33
+ | **Drive** | Their files: documents, decks, sheets, PDFs, media, folders | `gsk drive` | `gsk drive` for uploads and file management; document editing in §7 |
29
34
 
30
35
  Both halves have a "mine" part and an "ours" part. Notes and **My Drive** are the user's own. **Team Drive** is their teams' — org drives, GenTeam channel and DM drives, Hub drives, knowledge drives. All of it is the Second Brain. Speak of team content as "your team's", never "your".
31
36
 
@@ -87,9 +92,15 @@ Your reach depends on the runtime you run in. Check which applies before you act
87
92
 
88
93
  Decide where the thing lives, then use that door once:
89
94
 
95
+ Use stored knowledge to fill a task-specific information gap: personal or team
96
+ facts, prior decisions, or earlier work. Start from a supplied reference when
97
+ available. Otherwise choose a likely source using the question and known
98
+ customer, project or time range. Self-contained requests use the supplied
99
+ material.
100
+
90
101
  | The user asks about... | Do this |
91
102
  |---|---|
92
- | Something they knew, wrote, received or decided | `gsk sb-brain grep -q <short keyword>` across sources, or `-s <source>` when they named one. Then `read -s <hit.source> --repo_id <hit.repo_id> -p <hit.path>` the best hit. `grep` is a fixed string, case-insensitive; not a regex |
103
+ | Something they knew, wrote, received or decided | Use `gsk sb-brain grep -s <source> -q <short keyword>` for a known or selected source; otherwise `gsk sb-brain grep -q <short keyword>` searches mounted sources. Then `read -s <hit.source> --repo_id <hit.repo_id> --ref <hit.ref> -p <hit.path>` the relevant hit. `grep` is a fixed string, case-insensitive; not a regex |
93
104
  | Themselves, their preferences, their work | `read -s memo -p System/memory/Memory.md` first |
94
105
  | A known Drive file | `gsk drive read --id <entry>` or `read --path <path>`; preserve a selected `--source`. Discover only an unknown filename with `find --scope all -q <name>` |
95
106
  | A topic inside a selected Drive folder | `gsk drive search --query <topic> --query_scope subtree` with the selected `--id`, `--path` or `--source` |
@@ -98,11 +109,17 @@ Decide where the thing lives, then use that door once:
98
109
  | A pasted Drive link or share card | `gsk drive read --url <link>` for files, `gsk drive tree --url <link>` for folders; the resolver follows live shortcuts |
99
110
  | A document card in a GenTeam conversation | `de attachment-view --ref "<the card row's attachment_ref>" --target <channel>` on any member's turn while its share is open to the conversation; when that refuses, the three steps in §4 on your creator's turn: the link from the message text, `gsk drive ls --url <link>`, then `get_readable_url` (or `download` for Office and PDF) |
100
111
  | A folder card in a GenTeam conversation | `de attachment-list --ref "<the card row's attachment_ref>" --target <channel>` lists its children (`--entry <folder id>` for a sub-folder, `--after <entry id>` for the next page); `de attachment-view --ref "<the card ref>" --entry <child id> --target <channel>` reads one child — both on any member's turn while its share is open to the conversation |
101
- | An attachment in the current conversation | The conversation's own attachment path, not the Drive |
112
+ | An attachment in the current conversation | Read its supplied file reference or existing conversation copy |
113
+ | A past Genspark project | Where project commands are available: `gsk read-project <id>` for a known ID; `gsk recall "<description>"` to locate one; `gsk projects` to browse. Read the located project before using its facts |
102
114
  | Meaning-based search across their Drive documents | `gsk doc-search query -q <question>` when it is available to you. Today it covers My Drive only |
103
115
 
104
116
  Always `read` or fetch a file before quoting or acting on it. If nothing relevant comes back, try one variant (shorter prefix, nickname, the user's other language), then say what you covered. Conflicting sources: surface both with dates.
105
117
 
118
+ Match a source's customer/project, date and purpose to the task. When adapting
119
+ prior work for a new customer or period, use names, dates and terms supported
120
+ by evidence for that task, with placeholders for unconfirmed details.
121
+ Historical answers keep the source's time frame.
122
+
106
123
  For a topical question, stop collecting once original evidence covers the
107
124
  requested facts. Read another file or range to close a named gap or resolve a
108
125
  conflict, not just for completeness. A request for a full-document summary still
@@ -143,8 +160,9 @@ parser, stating the actual coverage. Use `--id`, not restore's `--entry_id`.
143
160
  If a new action/flag is rejected, retry once with `gsk --refresh`; an older server
144
161
  may still need the byte-read fallback. Active Office content uses `wo-peer` (§7).
145
162
  Permission refusals are not a reason to try another read lane.
146
- Cite `[title](returned url)` verbatim for Drive evidence. Never prefix that
147
- URL with `memo:`, which opens a vault note instead of the Drive source.
163
+ Cite Drive evidence as `[filename](returned url)` so the user can open the
164
+ source file. Add its path to distinguish same-named files, or when no URL is
165
+ returned. Preserve the returned URL exactly.
148
166
 
149
167
  ## 6. Writing
150
168
 
@@ -190,23 +208,33 @@ Never change an entry's `general_access` (`link`, `org`) to hand out a link. The
190
208
  - **Every existing Office document** (`docx`, `xlsx`, `pptx`, in My Drive or shared): edit it through the `wo-peer` collaboration room on its source id. Never download, edit locally and overwrite it. An empty presence probe, a closed editor or `wo-peer close` does not make file replacement safe: room state can persist after users leave. Use the room for text, images, formatting, sheets and slides. If it is unavailable, return the proposed change as text and say the document was not updated.
191
209
  - **A shared Office document:** when using Drive, resolve the source first; in GenTeam use the card route below. `get_readable_url` returns `collaboration.file_id` and `collaboration.link_workspace_id`; use `wo-peer open <file_id> --context <context>` (`--link-workspace-id` is an alias). This joins the native file's room and preserves the permission context for saving. A shortcut ID is not a room ID; an editor token is not proof that an edit was acknowledged or persisted.
192
210
  - **In a GenTeam conversation** the room lane is `wo-peer` as well, on PATH when your creator is enabled for it (`gk_sb_collab_peer`): use `de channel-files` to get the card row's `link_target_id` as `<f_id>` (else the `<entry>` segment of its share link) and its `link_workspace_id`, then run `wo-peer open <f_id> --context <link_workspace_id>`. This card route does not require a creator-only `gsk drive` call. `wo-peer probe <f_id> --context <link_workspace_id>` is optional presence information, never a choice between room editing and overwrite. Omit `--context` only when the row shows none; `~/.gsk/skills/wo-peer/SKILL.md` has the GenTeam section. Two lanes, and the backend picks per call: on your creator's turn, any document your creator may edit; on a member's turn, only a card shared *editable* to this conversation — the room then acts as that member, with the authority they have in the browser. Every `wo-peer call` is re-checked for the current turn: `TOOL_OWNER_ONLY` means neither lane admits this turn (a teammate's turn on a document not shared editable here) — tell them, do not retry; "open under another person's authority" means run `open` again for this turn. Without `wo-peer` on PATH, existing Office files cannot be edited from here: say so and hand the change back as text in your reply.
193
- - **A Markdown file in Drive:** there is no live co-editing through `wo-peer`. Do not apply an edit by replacing the whole file with an upload; return the proposed text and explain that it has not been applied. This does not change Notes writes through `sb-git` with `expected_parent`.
211
+ - **A Markdown file in Drive:** Do not apply an edit by replacing the whole file with an upload. With `wo-peer` on PATH, edit it in the room on its entry id whether or not anyone has it open: when `doc_overview` shows `"writeback": true` or a person's editor in the room, the room lands the file, so edits are room edits and an explicit "overwrite / replace all" is `write_markdown` there. Finish with `wo-peer finish` and call it written only when that reports `saved`. With `"writeback": false` and nobody's editor in the room, or without `wo-peer`, there is no live co-editing: return the proposed text and explain that it has not been applied. This does not change Notes writes through `sb-git` with `expected_parent`.
194
212
  - **Replacing a standalone media or archive asset** (an image, audio/video file or ZIP): when the user explicitly asks to replace that exact asset, resolve its native source entry, record its id, and reuse that source's workspace/source/path with `gsk drive upload --local_file <replacement> --upload_path <resolved native path> --on-conflict overwrite`. This replaces the asset's bytes, subject to the existing write permissions and creator-turn gate. Never upload against a projection/alias path. Verify the returned `item.id` matches the original source id before claiming an in-place update; report a refusal or unexpected new id without retrying as a renamed copy. This lane excludes Office, Markdown, PDF and other documents; an image inside a document is edited through the document's room.
195
213
  - **Anything you cannot edit:** say why — this turn is not authorized, view-only grant, no room in this runtime, no editor for this type. Never create a new copy in place of the update.
196
214
 
197
215
  ## 8. When to open the brain
198
216
 
199
- Most requests are self-contained; do not open the brain for them. Open it on one of three signals:
217
+ Use the current conversation when it covers the request. Retrieve for:
218
+
219
+ - Earlier work or decisions: "what did we decide about X?"
220
+ - A reference to Notes, mail, meetings, Drive or a specific file.
221
+ - A personal/team name or project whose context is missing from the conversation.
200
222
 
201
- 1. **A memory question.** "Did I ever", "what did we decide about X", "what did <person> say", "find my notes on Y", "the deck I uploaded".
202
- 2. **An explicit pointer.** The user says to check their notes, mail, meetings, files, Drive, or Second Brain.
203
- 3. **An unresolved name.** A person, customer, project, file or term used as if you should know it, that the conversation does not explain.
223
+ Read a selected file directly; otherwise start with one focused search and
224
+ read the relevant evidence. Carry its source, repository, ref and file identity
225
+ into reads and handoffs. Check that customer/project and dates match the task;
226
+ confirm how differently named entities relate before combining their facts.
227
+ Preserve draft, target and approval status; label proposals and inferences.
204
228
 
205
- Then one round: one focused `grep` (or one `find` for files) and one `read` of the best hit; answer only what it supports. Widen only when the user asks or pushes back on a negative, and keep the scope they gave ("search all my meetings" stays in `-s meeting`). A calculation, a rewrite of pasted text, or a public-web question never needs the brain. Your runtime's own prompt may ask for more on its surface — the Second Brain chat reads the user's `Memory.md` before answering anything about them — and it wins there.
229
+ Stop when the requested facts are covered. Use continuation or a focused retry
230
+ for a specific gap, keeping the user's source scope and runtime permissions.
231
+ Project history records prior conversations; follow its citations when original
232
+ documents are needed. Ask for missing required attachments while continuing
233
+ explicitly requested history lookup. Product-specific memory workflows still apply.
206
234
 
207
235
  ## 9. Known limits, as of 2026-09-18
208
236
 
209
- - Drive Markdown has no live co-editing; whole-file upload can lose concurrent changes, so return proposed edits as text (§7).
237
+ - Drive Markdown is edited only through a `wo-peer` room that lands the file (§7); whole-file upload can lose concurrent changes, so without one return proposed edits as text.
210
238
  - A PDF is produced by exporting a paginated web document (`gsk doc export -f pdf`) and uploading it; PDF content cannot be edited in place from an agent. `download_file --file_url` can import one.
211
239
  - `upload` replies carry `url` and `item.id` since 2026-09-15; on an older runtime recover the id with `find`.
212
240
  - `doc-search` indexes My Drive only. It is switched on for internal accounts only.
@@ -227,7 +227,13 @@ gsk drive upload --local_file ./report.pdf --upload_path /docs/report.pdf --to a
227
227
 
228
228
  For ANY third-party integration (email, chat, CRM, files, custom MCP
229
229
  servers), use the unified flow in `../gsk-connector/SKILL.md`:
230
- `gsk connector list` → `search` → `tools <id>` → `call <id> -t <tool> -a '<json>'`.
230
+ `gsk connector list` / `search` → advertised `guide <id>` → `call <id> -t <tool> -a '<json>'`.
231
+ Read an advertised guide once and reuse it within the session; if none is advertised, continue with tool discovery.
232
+ Call directly when the guide documents the required tool and arguments.
233
+ Use `tools <id>` only when no guide is advertised, it returns `not_available`,
234
+ needed tool or argument details are missing, or a call reports an unknown tool
235
+ or schema mismatch. Respect connection and enablement hints, installed-ID
236
+ instructions, and tool-specific safety requirements.
231
237
  Never assume a connector is missing without running `gsk connector search` first.
232
238
  The unified commands are rolling out behind a feature flag; if `gsk connector`
233
239
  is unavailable (unknown-command error), use the per-service commands from the
@@ -2,7 +2,7 @@
2
2
  name: gsk-sharepoint
3
3
  version: 1.0.0
4
4
  description: 'SharePoint site, list, and file operations. Actions: list, list_items,
5
- search, read_content, read_file, upload.'
5
+ search, read_content, read_file, get_readable_url, upload.'
6
6
  metadata:
7
7
  category: general
8
8
  generated_by: genspark_tool_cli/generate_skills.py
@@ -18,7 +18,7 @@ metadata:
18
18
 
19
19
  > **Note:** a unified `gsk connector` flow is rolling out (see `../gsk-connector/SKILL.md`: `gsk connector tools <id>` / `gsk connector call <id> -t <tool>`) and may not be enabled for every account yet. THIS command remains fully supported — use it directly, and it stays the fallback whenever `gsk connector` is unavailable.
20
20
 
21
- SharePoint site, list, and file operations. Actions: list, list_items, search, read_content, read_file, upload.
21
+ SharePoint site, list, and file operations. Actions: list, list_items, search, read_content, read_file, get_readable_url, upload.
22
22
 
23
23
  ## Usage
24
24
 
@@ -30,7 +30,7 @@ gsk sharepoint [options]
30
30
 
31
31
  | Flag | Required | Description |
32
32
  |------|----------|-------------|
33
- | `<action>` (positional) | Yes | Action to perform. 'list': List files in a site or library; 'list_items': Read the rows of a SharePoint list (Microsoft Lists) with all columns expanded; 'search': Search across sites; 'read_content': Read content from a list item or page; 'read_file': Read and extract content from a file; 'upload': Upload a file to a site or library (string, one of: list, list_items, search, read_content, read_file, upload) |
33
+ | `<action>` (positional) | Yes | Action to perform. 'list': List files in a site or library; 'list_items': Read the rows of a SharePoint list (Microsoft Lists) with all columns expanded; 'search': Search across sites; 'read_content': Read content from a list item or page; 'read_file': Read and extract content from a file; 'get_readable_url': Get a short-lived (at most 1 hour) pre-authenticated download URL for a file, for streaming it with HTTP Range requests and no auth header. Read-only; never print or share the URL; 'upload': Upload a file to a site or library (string, one of: list, list_items, search, read_content, read_file, get_readable_url, upload) |
34
34
  | `--sharepoint_url` | No | [list] A SharePoint URL to list files from. Can be a site URL, document library URL (AllItems.aspx), or a folder URL. Example: 'https://company.sharepoint.com/sites/TeamSite/Shared Documents/Forms/AllItems.aspx' \| [upload] Target folder URL on SharePoint. Example: 'https://company.sharepoint.com/sites/Team/Shared Documents/Reports'. The tool resolves this to a drive + folder. (string) |
35
35
  | `--site_id` | No | [list] The SharePoint site ID. Use this to list the default document library of a specific site. Get site IDs from sharepoint_search results. \| [list_items] The SharePoint site ID that owns the list. Get it from sharepoint_search results. \| [read_content] Site ID from SharePoint search results siteInfo. Required for listItem content type. \| [upload] SharePoint site ID. The file is uploaded to the default document library; combine with ``folder_id`` to target a subfolder. (string) |
36
36
  | `--drive_id` | No | [list] The document library (drive) ID. Use this to list files in a specific document library. \| [upload] Document library (drive) ID. Combine with ``folder_id`` to target a specific folder. (string) |
@@ -45,7 +45,8 @@ gsk sharepoint [options]
45
45
  | `--content_type` | No | [read_content] The type of SharePoint content to read. Use 'driveItem' for SharePoint files, 'listItem' for SharePoint pages/list items. (string, one of: site, page, list, listItem, driveItem) |
46
46
  | `--question` | No | [read_content] The question to answer about the SharePoint content. \| [read_file] The question to answer about the file content. (string) |
47
47
  | `--list_item_id` | No | [read_content] List item ID from SharePoint search results siteInfo. Required for listItem content type. (string) |
48
- | `--file_id` | No | [read_file] The ID of the file OR the SharePoint URL to read from Microsoft OneDrive/SharePoint/Teams. Can be either a file ID (like '01W56PINYRO3...') or a full SharePoint URL (like 'https://domain.sharepoint.com/...'). (string) |
48
+ | `--file_id` | No | [read_file] The ID of the file OR the SharePoint URL to read from Microsoft OneDrive/SharePoint/Teams. Can be either a file ID (like '01W56PINYRO3...') or a full SharePoint URL (like 'https://domain.sharepoint.com/...'). \| [get_readable_url] The file ID or the file's OneDrive/SharePoint URL: the same forms the read_file action accepts. (string) |
49
+ | `--raw_file` | No | [read_file] Return a short-lived download of the original file without extracting or summarizing it. Google Docs, Slides and Sheets export as DOCX, PPTX and XLSX. Mutually exclusive with raw_content; ignores question. (boolean) |
49
50
  | `--raw_content` | No | [read_file] Return the complete converted document text (markdown) without question-answering. For programmatic consumers that need full fidelity; ignores 'question'. (boolean) |
50
51
  | `--file_path` | No | [upload] A Genspark file-wrapper URL, an AI Drive path (aidrive://, /aidrive/ or /mnt/aidrive/), or a local file uploaded automatically by the CLI. Direct API callers must upload local files first. (string) |
51
52
  | `--content` | No | [upload] Text content to upload as the file body (encoded as UTF-8). Useful for creating .txt/.md/.json/.csv files without a local copy. Mutually exclusive with ``file_path``. (string) |
@@ -33,8 +33,12 @@ gsk video [options]
33
33
  | `<query>` (positional) | No | Detailed, self-contained description of the video to generate, written in English. This text is sent to the video model verbatim as the generation prompt, so put all the visual detail here — but NEVER output settings: text like '16:9' or '4 seconds' in the prompt may be rendered literally into the scene. Pass aspect ratio via the `aspect_ratio` parameter and length via `duration`. duration is recommended to be 5 ~ 10 seconds. For image-to-image transitions (user provides start and end frames) e.g., 'A timelapse of a flower blooming in a garden'. Omit when passing the prompt by `query_file` instead. Or omit on a draft_task_id finalize (it reuses the draft's prompt). (string) |
34
34
  | `--query_file` | No | Optional. Repo-relative path to a UTF-8 text file containing the prompt, used verbatim in place of `query` (lets you pass a long prompt by path instead of inlining it). Requires `repo_id`. When set, `query` may be omitted. (string) |
35
35
  | `--file_name` | No | The name of the video to generate. (string, null) |
36
- | `-m`, `--model` | Yes | The model to use for video generation. kling/v3: Latest Kling V3. Supports native audio, but generates a SILENT video unless audio_enable=true. image_urls are frames, not references: 1 image = first frame (i2v); 2 images = first + last frame (the 2nd is the END frame). No reference mode (use kling/o3 with reference_mode for reference-driven generation). Pro/Standard/Turbo tiers (set via the tier parameter; turbo is the fastest arm but has no audio and no first/last-frame control). Supported ratios: 16:9, 9:16, 1:1. Duration: 3-15s. kling/o3: Kling O3. REQUIRES at least one input image or a video_url (no text-to-video). image_urls are frames (1 = first, 2 = first + last) unless reference_mode=true: style/character references, max 4 total including elements. video_url switches to video-to-video (video_mode 'reference' = motion guide, 'edit' = restyle in footage). Native audio via audio_enable. Pro/Standard tiers. Supported ratios: 16:9, 9:16, 1:1. Duration: 3-15s. gemini/veo3.1: Gemini Veo 3.1 - Latest version with enhanced quality and features. Supports text-to-video and image-to-video generation with improved quality. image_urls are frames unless reference_mode: 1 image = first frame, exactly 2 = first/last frame transition, 3 (or reference_mode=true) = style/character references (max 3, 8s only). video_url (MP4 source) = video EXTENSION mode: continues from the last frame, 7s, up to 1080p. Duration: 4s/6s/8s. Supported ratios: 16:9, 9:16. Supports tier (standard \| fast). Resolution: 720p, 1080p, 4k. minimax/h3: MiniMax H3 2K video model. Supports text-to-video, image-to-video with first/last frame control, and reference-to-video (up to 9 reference images, 3 reference videos, 3 reference audio clips — refer to them in the prompt as 'Image 1', 'Video 1', 'Audio 1', not @-style). Keyframes and references are mutually exclusive. Supported ratios: adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 5-15s. Resolution: 768p or 2K (default). minimax/h3-max: MiniMax H3 Max, a distinct post-trained model with faster generation, stronger prompt adherence, and improved aesthetics. Supports text, first/last frames, and image/video/audio references. tier=turbo selects the faster, half-price text/image arm; reference inputs use standard. Duration: 5-15s. Resolution: 480p or 768p. wan/v2.7: Wan v2.7 with enhanced motion smoothness and scene fidelity. Supports text-to-video, image-to-video, reference-to-video, and edit-video. Ratios: 16:9, 9:16, 1:1. Duration: 5s. Resolution: 480p, 720p vidu/q3: Vidu Q3 model with enhanced quality and audio generation. Supports text-to-video, image-to-video, and reference-to-video (reference_mode with 1-4 image_urls keeps subjects/scenes consistent; no turbo tier in reference mode). tier=turbo runs the faster turbo arm at half the price. Supported ratios: 16:9, 9:16, 4:3, 3:4, 1:1. Duration: 1-16s. Resolution: 720p, 1080prunway/gen4_turbo: A model for generate video with high quality, fast.Supported ratios: 5:3, 3:5. Only support i2v. Duration: 5s, 10spixverse/v6: PixVerse V6 latest model with lifelike motion, richer skin detail, real emotions. Full cinematic control including choreography and camera. Supports text-to-video, image-to-video, transition, and video extend generation. VFX, time-lapse, transformation scenes, product demos, 360° views, multi-shot storytelling. Extend: pass video_url to extend an existing video. Supported ratios: 16:9, 9:16, 4:3, 1:1, 3:4. Duration: 5s, 8s. pixverse/c1: PixVerse C1 with native audio (audio_enable=true), text-to-video, image-to-video, transitions (2 images = first/last frame) and reference-to-video (reference_mode with 1-7 image_urls; address them in the prompt as @image1..@image7). No video extend. Supported ratios: 16:9, 9:16, 4:3, 3:4, 1:1, 3:2, 2:3, 21:9. Duration: 1-15s. Resolution: 360p, 540p, 720p, 1080p. fal-ai/bytedance/seedance-2.0: Bytedance Seedance 2.0 model for highest quality video generation with native audio and lip-sync. Supports text-to-video and image-to-video with first/last frame control. Supported ratios: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 4-15s. Resolution: 480p, 720p, or 1080p on the standard tier (~2.25x cost; fast/mini cap at 720p). tier picks the variant: standard, fast, or mini (cheapest, ~half the standard price). Also supports reference-to-video with up to 9 images, 3 videos, or 3 audio refs via settings.fal-ai/bytedance-upscaler/upscale/video: ByteDance Video Upscaler for enhancing video quality. Upscales videos to higher resolutions (2k) Requires video_url parameter. Does NOT generate new videos. Use when user wants to improve quality of existing videos.xai/grok-imagine-video: xAI Grok Imagine Video v1.5 for high-quality video generation. Supports text-to-video and image-to-video generation. 2+ image_urls (or reference_mode=true) = style/character references, up to 7 (reference mode caps at 720p). video_url (MP4, 2-15s source) = video EXTENSION mode: continues from the last frame, 2-10s extension, 720p. 480p/720p/1080p output. Supported ratios: 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16. Duration: 1-15s. alibaba/happy-horse: Alibaba Happy Horse video model. High-quality generation from text, or image-to-video from a single first-frame image (one image_url without reference_mode). Supported ratios: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21, 5:4, 4:5. Duration: 3-15s. Resolution: 720p, 1080p.alibaba/happy-horse/reference-to-video: Alibaba Happy Horse reference-to-video. Generate video from 1-9 reference images; address subjects in the prompt as character1..character9 (order matches image_urls). Requires image_urls. Supported ratios: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21, 5:4, 4:5. Duration: 3-15s. Resolution: 720p, 1080p.alibaba/happy-horse/video-edit: Alibaba Happy Horse video-edit. Edit a source video using a text prompt; optional 1-5 reference images addressed as @Image1..@Image5. Requires video_url (MP4/MOV, 3-60s). Output preserves source aspect ratio, capped at 15s. Resolution: 720p, 1080p.gemini/omni-flash: Google's multimodal video model with native audio. Supports text-to-video, image-to-video (1 image as first frame), reference-to-video (set reference_mode with image_urls to use images as subject/style references — even a single image; 2+ images are references by default), and video editing (pass video_url to edit an existing clip — restyle, restage, add objects). Bind image roles in the prompt with <FIRST_FRAME> / <IMAGE_REF_0>. Ratios: 16:9, 9:16. Duration: 3-10s. Resolution: 720p. bfl/flux-3-preview-high: BFL FLUX 3 video model with native audio. Supports text-to-video and 1-10 ordered keyframes, or continuation from one source video selected with input_mode=start_video. Ratios: auto, 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 5-20s. Resolution: 720p, 1080p. Only one input family may be used per request.fal-ai/bytedance/seedance-2.5: Bytedance Seedance 2.5 for native 30-second single-shot video with synchronized audio. Supports text-to-video and image-to-video with first/last frame control. No tier variants. Supported ratios: auto, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 4-30s, or 0 = auto (needs video refs). Resolution: 480p, 720p, or 1080p (~2.46x cost). Also supports reference-to-video (up to 30 images, 10 videos, 10 audio refs; no image required), video EDITING and EXTENSION — source in video_urls, the prompt describes the change or continuation.wan/v3.0: Alibaba Wan 3.0 — next-gen open-weight Wan with native audio and single-pass clips up to 30s. Supports text-to-video, image-to-video with first/last frame control, and reference-to-video (reference_mode with up to 10 reference images, 5 videos and 5 audio clips, each ref modality <=15s combined — address them positionally in the prompt as 'Image 1', 'Video 1', 'Audio 1'). tier=fast runs the accelerated Prime arm (~1.4x cost). Supported ratios: adaptive, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 2-30s. Resolution: 480p, 720p, 1080p. Duration ranges above are hard caps; out-of-range values are clamped to the nearest supported value. (string, one of: kling/v3, kling/o3, gemini/veo3.1, minimax/h3, minimax/h3-max, wan/v2.7, vidu/q3, runway/gen4_turbo, pixverse/v6, pixverse/c1, fal-ai/bytedance/seedance-2.0, fal-ai/bytedance-upscaler/upscale/video, xai/grok-imagine-video, alibaba/happy-horse, alibaba/happy-horse/reference-to-video, alibaba/happy-horse/video-edit, gemini/omni-flash, bfl/flux-3-preview-high, fal-ai/bytedance/seedance-2.5, wan/v3.0) |
36
+ | `-m`, `--model` | Yes | The model to use for video generation. kling/v3: Latest Kling V3. Supports native audio, but generates a SILENT video unless audio_enable=true. image_urls are frames, not references: 1 image = first frame (i2v); 2 images = first + last frame (the 2nd is the END frame). No reference mode (use kling/o3 with reference_mode for reference-driven generation). Pro/Standard/Turbo tiers (set via the tier parameter; turbo is the fastest arm but has no audio and no first/last-frame control). Supported ratios: 16:9, 9:16, 1:1. Duration: 3-15s. kling/o3: Kling O3. REQUIRES at least one input image or a video_url (no text-to-video). image_urls are frames (1 = first, 2 = first + last) unless reference_mode=true: style/character references, max 4 total including elements. video_url switches to video-to-video (video_mode 'reference' = motion guide, 'edit' = restyle in footage). Native audio via audio_enable. Pro/Standard tiers. Supported ratios: 16:9, 9:16, 1:1. Duration: 3-15s. gemini/veo3.1: Gemini Veo 3.1 - Latest version with enhanced quality and features. Supports text-to-video and image-to-video generation with improved quality. image_urls are frames unless reference_mode: 1 image = first frame, exactly 2 = first/last frame transition, 3 (or reference_mode=true) = style/character references (max 3, 8s only). video_url (MP4 source) = video EXTENSION mode: continues from the last frame, 7s, up to 1080p. Duration: 4s/6s/8s. Supported ratios: 16:9, 9:16. Supports tier (standard \| fast). Resolution: 720p, 1080p, 4k. minimax/h3: MiniMax H3 2K video model. Supports text-to-video, image-to-video with first/last frame control, and reference-to-video (up to 9 reference images, 3 reference videos, 3 reference audio clips — refer to them in the prompt as 'Image 1', 'Video 1', 'Audio 1', not @-style). Keyframes and references are mutually exclusive. Supported ratios: adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 5-15s. Resolution: 768p or 2K (default). minimax/h3-max: MiniMax H3 Max, a distinct post-trained model with faster generation, stronger prompt adherence, and improved aesthetics. Supports text, first/middle/last frame keyframes, and image/video/audio references — keyframes and references COMBINE on this model (set keyframes via first_frame_url/last_frame_url/middle_image_url + middle_frame_time; the middle frame needs an explicit first_frame_url AND last_frame_url — image_urls are all references here — native 480p/768p, and at least one reference). tier=turbo selects the faster, half-price text/image arm; reference and middle-frame inputs use standard. Duration: 5-15s. Resolution: 480p or 768p. Reference requests also incur a reference-token fee on top of the output charge — a reference video especially can cost more than the output itself. wan/v2.7: Wan v2.7 with enhanced motion smoothness and scene fidelity. Supports text-to-video, image-to-video, reference-to-video, and edit-video. Ratios: 16:9, 9:16, 1:1. Duration: 5s. Resolution: 480p, 720p vidu/q4: Vidu Q4, Vidu's next-generation flagship with native audio. REQUIRES an image (no text-to-video): 1 image_urls entry = first frame (image-to-video, framing follows the image); reference_mode (or 2+ images, or audio_urls) = reference-to-video with up to 12 reference images and 3 voice clips, addressed in the prompt as [@reference_image_1].. / [reference_audio_1].. No end frame, no tiers. Supported ratios (reference mode): 16:9, 9:16, 4:3, 3:4, 1:1. Duration: 3-16s. Resolution: 540p, 720p, 1080p, 2K, 4Krunway/gen4_turbo: A model for generate video with high quality, fast.Supported ratios: 5:3, 3:5. Only support i2v. Duration: 5s, 10spixverse/v6: PixVerse V6 latest model with lifelike motion, richer skin detail, real emotions. Full cinematic control including choreography and camera. Supports text-to-video, image-to-video, transition, and video extend generation. VFX, time-lapse, transformation scenes, product demos, 360° views, multi-shot storytelling. Extend: pass video_url to extend an existing video. Supported ratios: 16:9, 9:16, 4:3, 1:1, 3:4. Duration: 5s, 8s. pixverse/c1: PixVerse C1 with native audio (audio_enable=true), text-to-video, image-to-video, transitions (2 images = first/last frame) and reference-to-video (reference_mode with 1-7 image_urls; address them in the prompt as @image1..@image7). No video extend. Supported ratios: 16:9, 9:16, 4:3, 3:4, 1:1, 3:2, 2:3, 21:9. Duration: 1-15s. Resolution: 360p, 540p, 720p, 1080p. fal-ai/bytedance/seedance-2.0: Bytedance Seedance 2.0 model for highest quality video generation with native audio and lip-sync. Supports text-to-video and image-to-video with first/last frame control. Supported ratios: 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 4-15s. Resolution: 480p, 720p, or 1080p on the standard tier (~2.25x cost; fast/mini cap at 720p). tier picks the variant: standard, fast, or mini (cheapest, ~half the standard price). Also supports reference-to-video with up to 9 images, 3 videos, or 3 audio refs via settings.fal-ai/bytedance-upscaler/upscale/video: ByteDance Video Upscaler for enhancing video quality. Upscales videos to higher resolutions (2k) Requires video_url parameter. Does NOT generate new videos. Use when user wants to improve quality of existing videos.xai/grok-imagine-video: xAI Grok Imagine Video v1.5 for high-quality video generation. Supports text-to-video and image-to-video generation. 2+ image_urls (or reference_mode=true) = style/character references, up to 7 (reference mode caps at 720p). video_url (MP4, 2-15s source) = video EXTENSION mode: continues from the last frame, 2-10s extension, 720p. 480p/720p/1080p output. Supported ratios: 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16. Duration: 1-15s. tier=lite runs the lightweight low-cost 1.5 Lite arm (text-to-video and image-to-video only — no references, no extension). alibaba/happy-horse: Alibaba Happy Horse video model. High-quality generation from text, or image-to-video from a single first-frame image (one image_url without reference_mode). Supported ratios: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21, 5:4, 4:5. Duration: 3-15s. Resolution: 720p, 1080p.alibaba/happy-horse/reference-to-video: Alibaba Happy Horse reference-to-video. Generate video from 1-9 reference images; address subjects in the prompt as character1..character9 (order matches image_urls). Requires image_urls. Supported ratios: 16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21, 5:4, 4:5. Duration: 3-15s. Resolution: 720p, 1080p.alibaba/happy-horse/video-edit: Alibaba Happy Horse video-edit. Edit a source video using a text prompt; optional 1-5 reference images addressed as @Image1..@Image5. Requires video_url (MP4/MOV, 3-60s). Output preserves source aspect ratio, capped at 15s. Resolution: 720p, 1080p.gemini/omni-flash: Google's multimodal video model with native audio. Supports text-to-video, image-to-video (1 image as first frame), reference-to-video (set reference_mode with image_urls to use images as subject/style references — even a single image; 2+ images are references by default), and video editing (pass video_url to edit an existing clip — restyle, restage, add objects). Bind image roles in the prompt with <FIRST_FRAME> / <IMAGE_REF_0>. Ratios: 16:9, 9:16. Duration: 3-10s. Resolution: 720p. bfl/flux-3-preview-high: BFL FLUX 3 video model with native audio. Supports text-to-video and 1-10 ordered keyframes, or continuation from one source video selected with input_mode=start_video. Ratios: auto, 21:9, 2:1, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 5-20s. Resolution: 720p, 1080p. Only one input family may be used per request.fal-ai/bytedance/seedance-2.5: Bytedance Seedance 2.5 for native 30-second single-shot video with synchronized audio. Supports text-to-video and image-to-video with first/last frame control. No tier variants. Supported ratios: auto, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 4-30s, or 0 = auto (needs video refs). Resolution: 480p, 720p, or 1080p (~2.46x cost). Also supports reference-to-video (up to 30 images, 10 videos, 10 audio refs; no image required), video EDITING and EXTENSION — source in video_urls, the prompt describes the change or continuation.wan/v3.0: Alibaba Wan 3.0 — next-gen open-weight Wan with native audio and single-pass clips up to 30s. Supports text-to-video, image-to-video with first/last frame control, and reference-to-video (reference_mode with up to 10 reference images, 5 videos and 5 audio clips, each ref modality <=15s combined — address them positionally in the prompt as 'Image 1', 'Video 1', 'Audio 1'). tier=fast runs the accelerated Prime arm (~1.4x cost). Supported ratios: adaptive, 16:9, 4:3, 1:1, 3:4, 9:16. Duration: 2-30s. Resolution: 480p, 720p, 1080p. Duration ranges above are hard caps; out-of-range values are clamped to the nearest supported value. (string, one of: kling/v3, kling/o3, gemini/veo3.1, minimax/h3, minimax/h3-max, wan/v2.7, vidu/q4, runway/gen4_turbo, pixverse/v6, pixverse/c1, fal-ai/bytedance/seedance-2.0, fal-ai/bytedance-upscaler/upscale/video, xai/grok-imagine-video, alibaba/happy-horse, alibaba/happy-horse/reference-to-video, alibaba/happy-horse/video-edit, gemini/omni-flash, bfl/flux-3-preview-high, fal-ai/bytedance/seedance-2.5, wan/v3.0) |
37
37
  | `-i`, `--image_urls` | No | The URLs of the images to use as reference key frames for the video generation. For single image models, provide 1 image. For multi-image models (like kling/v1.6/pro/elements), provide 1-4 images in sequence order. For start-end models (like vidu, pixverse), provide exactly 2 images (start and end frames). (default is [], if the task is based on one or more reference images, it is required) IMPORTANT: without reference_mode, the first image becomes the video's literal opening frame — identity markers visible in it (flags, jerseys, text, logos, faces) persist in the output and the text prompt CANNOT override them. When generating a batch of subject-specific clips (per-country / per-person / per-product), each clip needs an image matching its own subject — never reuse another subject's image. (array) |
38
+ | `--first_frame_url` | No | MiniMax H3 Max keyframe control: image URL the video opens on exactly, ALONGSIDE reference_mode references (the output canvas follows this image). Without reference_mode the first image_urls entry already is the first frame; in reference_mode (including any middle-frame request) it is REQUIRED, because image_urls entries are all subject references. H3 Max only: other models ignore it, and base minimax/h3 rejects it (frames there come from image_urls). (string) |
39
+ | `--middle_image_url` | No | MiniMax H3 Max keyframe control: image the video passes through at middle_frame_time. Requires an explicit first frame (first_frame_url) AND last frame (last_frame_url) — a middle frame forces reference mode, where every image_urls entry is a subject reference — plus native 480p/768p and at least one reference image/video/audio. H3 Max only: other models ignore it, and base minimax/h3 rejects it. (string) |
40
+ | `--middle_frame_time` | No | MiniMax H3 Max keyframe control: seconds from the start for middle_image_url (rounded to the nearest frame at 24 fps; must fall strictly between the first and last frames of the requested duration). Requires middle_image_url plus explicit first_frame_url and last_frame_url and at least one reference image/video/audio. H3 Max only: other models ignore it, and base minimax/h3 rejects it. (number) |
41
+ | `--last_frame_url` | No | MiniMax H3 Max keyframe control: image URL the video ends on exactly, ALONGSIDE reference_mode references. Without reference_mode the second image_urls entry already is the last frame; in reference_mode (including any middle-frame request) it is REQUIRED, because image_urls entries are all subject references. H3 Max only: other models ignore it, and base minimax/h3 rejects it (frames there come from image_urls). (string) |
38
42
  | `-r`, `--aspect_ratio` | No | The aspect ratio of the video to generate. For image-to-video (i2v) generation, this should match the aspect ratio of your input image(s). Ratios unsupported by the chosen model fall back to its default (5:4 and 4:5 are only supported by alibaba/happy-horse; 3:2 and 2:3 by pixverse/c1 and grok-imagine-video). Use 'auto' (or omit this parameter) for FLUX 3. Omit it for MiniMax H3 native adaptive framing. (string, one of: auto, 16:9, 9:16, 1:1, 4:3, 3:4, 2:1, 3:2, 2:3, 21:9, 9:21, 5:4, 4:5) |
39
43
  | `-d`, `--duration` | No | The duration in seconds. 0 = auto (Seedance 2.5 with video_urls; required for edit prompts — output keeps the source length; extensions: pass the new segment's length). (number, default: `5`) |
40
44
  | `-a`, `--audio_url` | No | Audio URL for audio integration in video generation. - Optional for Wan v2.5 model (custom audio: music or speech, WAV/MP3, 3-10s, up to 15MB) - Required for OmniHuman model (audio-driven animation) Leave empty if no audio is needed. (string, default: ``) |
@@ -54,7 +58,7 @@ gsk video [options]
54
58
 
55
59
  ## Local File Support
56
60
 
57
- Parameters that accept URLs (`--image_urls`, `--audio_url`, `--video_url`, `--video_urls`, `--audio_urls`) also accept local file paths. The CLI automatically uploads local files before sending to the API.
61
+ Parameters that accept URLs (`--image_urls`, `--first_frame_url`, `--middle_image_url`, `--last_frame_url`, `--audio_url`, `--video_url`, `--video_urls`, `--audio_urls`) also accept local file paths. The CLI automatically uploads local files before sending to the API.
58
62
 
59
63
  ## Output File
60
64