zoo-mcp
v0.38.1An MCP server that provides access to the Zoo API for various CAD operations and tools.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
upload_job_execution_input
Upload a file from the MCP server. Use the returned ID as an input to submit_job_execution.
| Parameter | Type | Description |
|---|---|---|
input_file * | string |
submit_job_execution
Start a remote job with an argv command and workspace-relative inputs and outputs. If the response is lost, retry with the same key and uploaded IDs or list existing jobs.
| Parameter | Type | Description |
|---|---|---|
idempotency_key * | string | |
submission * |
get_job_execution
Check a job's status, archived log previews, and outputs. Wait up to 20 seconds. Pass results.artifacts.next_page as artifact_page_token for more outputs.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
artifact_page_token | ||
wait_seconds | integer |
list_job_executions
List this account's jobs across conversations, newest first. Use next_page to continue.
| Parameter | Type | Description |
|---|---|---|
page_token | ||
runtime_id | ||
status |
read_job_execution_logs
Read up to 64 KiB of archived stdout or stderr. Check available and continue at next_offset. data_base64 gives the original page bytes when text is lossy or a UTF-8 character crosses a page boundary.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
limit | integer | |
offset | integer | |
stream | string |
cancel_job_execution
Request cancellation. Check the job's status to confirm how it ended.
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
use_job_execution_artifact
Read a retained output as paged UTF-8 text or an inline image. To save any format, use download with a new file path on the MCP server. Only text reads accept a byte offset.
| Parameter | Type | Description |
|---|---|---|
artifact_id * | string | |
job_id * | string | |
action | string | |
destination | ||
offset | integer |
calculate_center_of_mass
Calculate the center of mass of a 3d object represented by the input file. Args: input_file (str): The path of the file to get the mass from. The file should be one of the supported formats: .fbx, .gltf, .obj, .ply, .sldprt, .step, .stp, .stl (case-insensitive) unit_length (str): The unit of length to return the result in. One of 'cm', 'ft', 'in', 'm', 'mm', 'yd' Returns: str: The center of mass of the file in the specified unit of length, or an error message if the operation fails.
| Parameter | Type | Description |
|---|---|---|
input_file * | string | |
unit_length * | string |
calculate_mass
Calculate the mass of a 3d object represented by the input file. Args: input_file (str): The path of the file to get the mass from. The file should be one of the supported formats: .fbx, .gltf, .obj, .ply, .sldprt, .step, .stp, .stl (case-insensitive) unit_mass (str): The unit of mass to return the result in. One of 'g', 'kg', 'lb'. unit_density (str): The unit of density to calculate the mass. One of 'lb:ft3', 'kg:m3'. density (float): The density of the material. Returns: str: The mass of the file in the specified unit of mass, or an error me…
| Parameter | Type | Description |
|---|---|---|
density * | number | |
input_file * | string | |
unit_density * | string | |
unit_mass * | string |
calculate_surface_area
Calculate the surface area of a 3d object represented by the input file. Args: input_file (str): The path of the file to get the surface area from. The file should be one of the supported formats: .fbx, .gltf, .obj, .ply, .sldprt, .step, .stp, .stl (case-insensitive) unit_area (str): The unit of area to return the result in. One of 'cm2', 'dm2', 'ft2', 'in2', 'km2', 'm2', 'mm2', 'yd2'. Returns: str: The surface area of the file in the specified unit of area, or an error message if the operation fails.
| Parameter | Type | Description |
|---|---|---|
input_file * | string | |
unit_area * | string |
calculate_volume
Calculate the volume of a 3d object represented by the input file. Args: input_file (str): The path of the file to get the volume from. The file should be one of the supported formats: .fbx, .gltf, .obj, .ply, .sldprt, .step, .stp, .stl (case-insensitive) unit_volume (str): The unit of volume to return the result in. One of 'cm3', 'ft3', 'in3', 'm3', 'mm3', 'yd3', 'usfloz', 'usgal', 'l', 'ml'. Returns: str: The volume of the file in the specified unit of volume, or an error message if the operation fails.
| Parameter | Type | Description |
|---|---|---|
input_file * | string | |
unit_volume * | string |
calculate_cad_physical_properties
Calculate physical properties (volume, mass, surface area, center of mass, bounding box) of a CAD file. Args: input_file (str): The path of the file. The file should be one of the supported formats: .fbx, .gltf, .obj, .ply, .sldprt, .step, .stp, .stl (case-insensitive) unit_length (str): The unit of length for center of mass. One of 'cm', 'ft', 'in', 'm', 'mm', 'yd'. unit_mass (str): The unit of mass for the mass result. One of 'g', 'kg', 'lb'. unit_density (str): The unit of density for the material. One of 'lb:ft3', 'kg:m3'. density (float): The d…
| Parameter | Type | Description |
|---|---|---|
density * | number | |
input_file * | string | |
unit_area * | string | |
unit_density * | string | |
unit_length * | string | |
unit_mass * | string | |
unit_volume * | string |
calculate_bounding_box_cad
Calculate the bounding box of a CAD file. Args: input_file (str): The path of the CAD file. The file should be one of the supported formats: .fbx, .gltf, .obj, .ply, .sldprt, .step, .stp, .stl (case-insensitive) Returns: dict | str: A dictionary with 'center' (dict with x,y,z) and 'dimensions' (dict with x,y,z), or an error message if the operation fails.
| Parameter | Type | Description |
|---|---|---|
input_file * | string |
convert_cad_file
Convert a CAD file from one format to another CAD file format. Args: input_file (str): The input cad file to convert. The file should be one of the supported formats: .fbx, .gltf, .obj, .ply, .sldprt, .step, .stp, .stl (case-insensitive) export_path (str | None): The path to save the converted CAD file to. If the path is a directory, a temporary file will be created in the directory. If the path is a file, it will be overwritten if the extension is valid. export_format (str | None): The format of the exported CAD file. This should be one of 'fbx', 'glb', 'gltf', 'o…
| Parameter | Type | Description |
|---|---|---|
export_format * | ||
export_path * | ||
input_file * | string |
execute_kcl
Execute KCL code given a string of KCL code or a path to a KCL project. Either kcl_code or kcl_path must be provided. If kcl_path is provided, it should point to a .kcl file or a directory containing a main.kcl file. Prefer evaluate_kcl when execution, measurements, snapshots, or exports are needed together; it collects them from one execution. Executing kcl_code does not save a .kcl source file. For model creation, save the source and required project files with the client's authorized file-editing tools, then validate the saved project using kcl_path and include the…
| Parameter | Type | Description |
|---|---|---|
kcl_code | ||
kcl_path | ||
session_id |
evaluate_kcl
Execute KCL once and collect requested measurements, snapshots and exports. Prefer this when several checks or final export formats are known in advance. Provide exactly one source: self-contained kcl_code or a saved kcl_path project. Save editable source separately; inline code does not create a source file. Mock errors prevent hosted execution. The isolated session closes after the operation; no persistent session ID is needed or returned. snapshot_request: Optional views (1–4 named views or camera dicts with up, vantage, center). An empty object requests…
| Parameter | Type | Description |
|---|---|---|
exports | ||
kcl_code | ||
kcl_path | ||
physical_properties_request | Optional measurements and output units; omit to skip. Mass requires density and unit_density. | |
snapshot_request | Optional snapshots; omit to skip rendering, or pass {} for an isometric image. |
start_modeling_session
Open an empty CPU modeling session for subsequent tools. Only one modeling session can be open at a time. Stop the current session before starting another. If one is already open, or is still connecting, this fails with an error naming that session's ID so it can be stopped. The server does not expire sessions after an idle or lifetime timeout. Callers are responsible for tracking and enforcing their desired timeout. Pass the returned session_id to execute_kcl to populate the scene, then reuse it with modeling query, selection, and highlight tools. Stop the s…
get_modeling_sessions
List modeling sessions owned by the current MCP server process. Use this to recover the active session ID after reconnecting to a server process. A restarted server has no sessions. The current implementation supports at most one session, but the list return type allows future support for multiple sessions. Returns: list[str]: Active modeling session IDs, currently empty or one item.
import_cad_file
Import a CAD file into an existing modeling session. Args: session_id: The ID returned by start_modeling_session. input_file: Path to a .fbx, .gltf, .obj, .ply, .sldprt, .step, .stp, or .stl file. Returns: str: The modeling engine ID of the imported object.
| Parameter | Type | Description |
|---|---|---|
input_file * | string | |
session_id * | string |
stop_modeling_session
Close a persistent modeling websocket session. Also accepts the ID of a session that is still connecting, which cancels that start and frees the slot for a new start_modeling_session call. Args: session_id: The ID returned by start_modeling_session, or the one named by a "already open or starting" error. Returns: None
| Parameter | Type | Description |
|---|---|---|
session_id * | string |
format_kcl
Format KCL code given a string of KCL code or a path to a KCL project. Either kcl_code or kcl_path must be provided. If kcl_path is provided, it should point to a .kcl file or a directory containing .kcl files. Args: kcl_code (str | None): The KCL code to format. kcl_path (str | None): The path to a KCL file to format. The path should point to a .kcl file or a directory containing a main.kcl file. Returns: str | None: Returns the formatted kcl code if the kcl_code is used otherwise returns None, the KCL in the kcl_path will be formatted in place
| Parameter | Type | Description |
|---|---|---|
kcl_code | ||
kcl_path |
get_sketch_constraint_status
Execute KCL and return a report of sketch constraint status. Either kcl_code or kcl_path must be provided. If kcl_path is provided, it should point to a .kcl file or a directory containing a main.kcl file. Sketches are grouped by constraint status: fully_constrained, under_constrained, over_constrained, and errors. Each sketch entry includes the sketch name, status, free_count (under-constrained segments), conflict_count (over-constrained segments), and total_count (total segments analyzed). The report also includes kcl_executes_successfully (False when KCL parsing/execution fail…
| Parameter | Type | Description |
|---|---|---|
kcl_code | ||
kcl_path |
visualize_sketch
Render a named 2D KCL sketch as a solver-debug PNG. The image shows sketch geometry and solver freedom without requiring an existing modeling session. ``sketch_name`` is the sketch's variable name, such as ``profile`` in ``profile = sketch(on = XY) { ... }``. Use ``get_sketch_constraint_status`` to discover sketch names when needed. A completed sketch may still be rendered after a later execution failure. A returned PNG does not mean the whole project executes successfully. If names repeat (for example, a function called twice), select an ``instance_index`` fro…
| Parameter | Type | Description |
|---|---|---|
sketch_name * | string | |
instance_index | ||
kcl_code | ||
kcl_path | ||
output_path |
get_face_info
Get the position, gradient, normal, and center of a face in a modeling session. Args: face_id (str): Usually a user or LLM-selected face id. session_id: A modeling session populated by execute_kcl. Returns: FaceInfo: The face position, gradient, normal, and center. The position is the starting point of the face's outside perimeter in KittyCAD engine space. The center is the geometric center of the face and should generally be preferred over the position.
| Parameter | Type | Description |
|---|---|---|
face_id * | string | |
session_id * | string |
entity_distance
Get the minimum and maximum distance between two model entities. Args: entity_id1: The first entity UUID, typically obtained from an artifact graph. entity_id2: The second entity UUID. session_id: A modeling session populated by execute_kcl. on_axis: Optional global axis for projected distance; omit for Euclidean distance. Returns: EntityGetDistance: The minimum and maximum distance between the entities.
| Parameter | Type | Description |
|---|---|---|
entity_id1 * | string | |
entity_id2 * | string | |
session_id * | string | |
on_axis |
set_selection_filter
Set which model entity types can be added to the "selection set". Args: entity_types: Entity types permitted by the selection filter. session_id: An open modeling session, from start_modeling_session. Required: the filter is scene state and would be discarded without one. Returns: SetSelectionFilter: Confirmation that the filter was set.
| Parameter | Type | Description |
|---|---|---|
entity_types * | array | |
session_id * | string |
select_entities
Replace the "selection set" with the given entities. Takes UUIDs exactly as they appear in an artifact graph, and works for faces, edges, and solids alike. Selected entities render with a distinct color tint and an outline, which is considerably more obvious in a `snapshot` than the subtler brightening that highlight_set_entities applies. For the strongest emphasis on a face, call both this and highlight_set_entities; for an edge use just one, as selection overrides the highlight. Follow with `snapshot` (passing zoom=False to keep the current camera) to see th…
| Parameter | Type | Description |
|---|---|---|
entity_ids * | array | |
session_id * | string |
center_camera_on_selection
Point the camera at the current "selection set". Useful for making a small selection legible, especially an edge: an edge is only a pixel or two wide, so centring it helps far more than any change of colour. Set the selection first with select_entities. Centring moves the camera without re-framing the scene, so parts of the model may fall outside the image. Follow with `snapshot` passing zoom=False, since zoom=True re-frames the whole scene and undoes the centring. Args: session_id: An open modeling session, from start_modeling_session. Required:…
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
move_vantage | boolean |
highlight_set_entities
Replace the currently highlighted entities. Does NOT modify the "selection set". This is a visual command: follow it with the `snapshot` tool, passing the same session_id and zoom=False, to see the highlight without moving the camera. It highlights edges, surfaces and bodies. Highlighting only brightens an entity slightly. select_entities is markedly more obvious, tinting the entity and drawing an outline around it. For the strongest emphasis on a face, call both; on an edge call only one, because selection overrides the highlight. An edge is a pixel or two wide w…
| Parameter | Type | Description |
|---|---|---|
entity_ids * | array | |
session_id * | string |
curve_get_end_points
Get the start and end points of a curve entity. Args: curve_id: Curve UUID, typically obtained from an artifact graph. session_id: A modeling session populated by execute_kcl. Returns: CurveGetEndPoints: The curve's start and end points.
| Parameter | Type | Description |
|---|---|---|
curve_id * | string | |
session_id * | string |
engine_util_evaluate_path
Evaluate a serialized KCL path at parameter t. Examples of `path_json`: ```json { "start": { "from": [10, 0] }, "value": [ { "type": "Arc", "center": [0, 0], "radius": 10, "angle_range": [0, 90] } ] } ``` ```json { "start": { "from": [0, 0] }, "value": [ { "type": "ToPoint", "to": [10, 0] }, { "type": "ToPoint", "to": [10, 10] } ] } ``` Args: path_json:…
| Parameter | Type | Description |
|---|---|---|
path_json * | string | |
session_id * | string | |
t * | number |
curve_get_type
Get whether a curve is a line, arc, or NURBS curve. Args: curve_id: Curve UUID, typically obtained from an artifact graph. session_id: A modeling session populated by execute_kcl. Returns: CurveGetType: The curve's geometric type.
| Parameter | Type | Description |
|---|---|---|
curve_id * | string | |
session_id * | string |
edge_get_length
Get the length of an edge entity in the current scene units. Args: edge_id: Edge UUID, typically obtained from an artifact graph. session_id: A modeling session populated by execute_kcl. Returns: EdgeGetLength: The edge length in the current scene units.
| Parameter | Type | Description |
|---|---|---|
edge_id * | string | |
session_id * | string |
entity_get_all_child_uuids
Get all child UUIDs belonging to an entity. Args: entity_id: Entity UUID, typically obtained from an artifact graph. session_id: A modeling session populated by execute_kcl. Returns: EntityGetAllChildUuids: All child entity UUIDs.
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | |
session_id * | string |
entity_get_index
Get an entity's index within its parent. Args: entity_id: Entity UUID, typically obtained from an artifact graph. session_id: A modeling session populated by execute_kcl. Returns: EntityGetIndex: The entity's index within its parent.
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | |
session_id * | string |
entity_get_parent_id
Get the UUID of an entity's parent. Args: entity_id: Entity UUID, typically obtained from an artifact graph. session_id: A modeling session populated by execute_kcl. Returns: EntityGetParentId: The parent entity's UUID.
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | |
session_id * | string |
entity_get_sketch_paths
Get the sketch path UUIDs belonging to an entity. Args: entity_id: Entity UUID, typically obtained from an artifact graph. session_id: A modeling session populated by execute_kcl. Returns: EntityGetSketchPaths: The sketch path UUIDs belonging to the entity.
| Parameter | Type | Description |
|---|---|---|
entity_id * | string | |
session_id * | string |
snapshot
Render an open modeling session as an image. Populate the scene first by passing this session_id to execute_kcl. The camera always uses an orthographic projection, so measurements read off the image are not distorted by perspective. Args: session_id: A modeling session populated by execute_kcl. camera_view: Which view or views to capture. Omit it for a single isometric view. Otherwise one of: 1. A named view: 'front', 'back', 'left', 'right', 'top', 'bottom', 'isometric', 'isometric_front_right',…
| Parameter | Type | Description |
|---|---|---|
session_id * | string | |
camera_view | ||
highlight_edges | boolean | |
max_image_dimension | integer | |
output_path | ||
padding | number | |
zoom | boolean |
lint_and_fix_kcl
Lint and fix KCL code given a string of KCL code or a path to a KCL project. Either kcl_code or kcl_path must be provided. If kcl_path is provided, it should point to a .kcl file or a directory containing .kcl files. Args: kcl_code (str | None): The KCL code to lint and fix. kcl_path (str | None): The path to a KCL file to lint and fix. The path should point to a .kcl file or a directory containing a main.kcl file. Returns: tuple[str, list[str]]: If kcl_code is provided, it returns a tuple containing the fixed KCL code and a list of unfixed lints.…
| Parameter | Type | Description |
|---|---|---|
kcl_code | ||
kcl_path |
mock_execute_kcl
Mock execute KCL code given a string of KCL code or a path to a KCL project. Either kcl_code or kcl_path must be provided. If kcl_path is provided, it should point to a .kcl file or a directory containing a main.kcl file. Args: kcl_code (str | None): The KCL code to mock execute. kcl_path (str | None): The path to a KCL file to mock execute. The path should point to a .kcl file or a directory containing a main.kcl file. Returns: tuple(bool, str): Returns True if the KCL code executed successfully and a success message, False otherwise and the error message.…
| Parameter | Type | Description |
|---|---|---|
kcl_code | ||
kcl_path |
list_org_datasets
List the datasets available to the user's organization. Only datasets the organization has enabled for lookup are listed; datasets excluded from lookup (for example while their conversions are still being worked on) are omitted and should not be searched. Each dataset has a UUID `id`, a human-readable `name`, and an optional `description`. Use the `id` as the `dataset_id` argument to `search_org_dataset_semantic`. Returns: A list of {"id": str, "name": str, "description": str | None} entries, or an error message if the operation fails.
list_org_skills
List the skills available to the user's organization. Each skill has a UUID `id`, a human-readable `name`, a `description`, and a `markdown` body containing the skill's full content. Returns: A list of {"id": str, "name": str, "description": str, "markdown": str} entries, or an error message if the operation fails.
search_org_dataset_semantic
Semantic-search a dataset for samples relevant to the query. Embeds the query with the org-dataset embedding model and returns the top chunk matches ranked by cosine similarity. Args: dataset_id (str): The UUID of the dataset to search (from `list_org_datasets`). query (str): The natural-language query to embed and search with. limit (int | None): Optional max number of matches to return. Returns: A list of match dicts (source_file_path, content, similarity, chunk_index, conversion_id), or an error message if the operation fails.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | |
query * | string | |
limit |
list_kcl_docs
List all available KCL documentation topics organized by category. Returns a dictionary with the following categories: - kcl-lang: KCL language documentation (syntax, types, functions, etc.) - kcl-std-functions: Standard library function documentation - kcl-std-types: Standard library type documentation - kcl-std-consts: Standard library constants documentation - kcl-std-modules: Standard library module documentation Each category contains a list of documentation file paths that can be retrieved using get_kcl_doc(). Returns: dict: Categories mappe…
lookup_kcl_docs
Look up compact KCL reference sections. Prefer this for initial docs lookup. Matches symbols, titles, headings, and keywords. Returns source paths and nonempty sections with complete examples and table rows when they fit. max_chars is a shared budget for Markdown content across all results (metadata is additional). Tables may omit rows within this budget. Truncated results can be expanded with get_kcl_doc(path). Both limits must be positive.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
max_chars | integer | |
max_results | integer |
get_kcl_doc
Get the full content of a specific KCL documentation file. Prefer lookup_kcl_docs first; fetch a full page when more detail is needed. Use list_kcl_docs() to see available documentation paths, or lookup_kcl_docs() to find relevant documentation by symbol or topic. Args: doc_path (str): The path to the documentation file (e.g., "docs/kcl-lang/functions" or "docs/kcl-std/functions/std-sketch-extrude") Returns: str: The full Markdown content of the documentation file, or an error message if not found. Raises:…
| Parameter | Type | Description |
|---|---|---|
doc_path * | string |
list_kcl_samples
List all available KCL sample projects. Returns the public Aquarium projects from the Zoo API. Each sample demonstrates a CAD modeling technique or creates a particular 3D model. Returns: list[dict]: List of sample information, each containing: - name: The public project ID (use with get_kcl_sample) - title: Human-readable title - description: Brief description of what the sample creates - multipleFiles: Whether the sample contains multiple KCL files. Best-effort hint only. The public listing doesn't expose fil…
search_kcl_samples
Search KCL samples by keyword. Searches across all KCL sample titles and descriptions for the given query. Returns matching samples ranked by relevance. Args: query (str): The search query (case-insensitive). max_results (int): Maximum number of results to return (default: 5). Returns: list[dict]: List of search results, each containing: - name: The public project ID (use with get_kcl_sample) - title: Human-readable title - description: Brief description of the sample - multipleFiles: Whether the sample…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
max_results | integer |
get_kcl_sample
Get the full content of a specific KCL sample including all files. Downloads a public Aquarium project and retrieves its KCL files with their project-relative paths, including files in subdirectories. Use list_kcl_samples() to see available sample names, or search_kcl_samples() to find samples by keyword. Args: sample_name (str): The public project ID returned by list_kcl_samples() or search_kcl_samples(). Returns: SampleData | str: A SampleData dictionary containing: - name: The public project ID - title: Human-re…
| Parameter | Type | Description |
|---|---|---|
sample_name * | string |
list_cloud_libraries
List personal libraries and active-organization libraries, including all creation sources. Continue with next_page as page_token, even when a page has no items. Unassigned projects have no named library; use list_cloud_projects for them.
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
page_token |
list_cloud_projects
Browse cloud projects and return cloud:<uuid> project_id values for filesystem tools. Use library_id alone or scope/unassigned without library_id. Keep filters unchanged while continuing with next_page as page_token.
| Parameter | Type | Description |
|---|---|---|
library_id | ||
limit | integer | |
page_token | ||
scope | ||
unassigned | boolean |
search_cloud_projects
Search project titles/descriptions/filenames in the caller's active organization. Source contents and personal projects are not searched. library_id optionally restricts to one organization library. Search indexing is asynchronous. Results describe version_id at search time; filesystem tools read current files.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
library_id | ||
limit | integer |
project_write_file
Write a file in a cloud:<uuid> project; its parent must exist. Without encoding, bytes are written unchanged and strings use UTF-8. Explicit encoding applies to strings: utf-8 for text or base64 for binary data over JSON MCP transports. Replaces the file if present, including main.kcl. Without expected_revision, conflicts refresh and reapply this write. max_project_bytes bounds total uncompressed project bytes (default 256 MiB). Returns acknowledged project metadata plus the normalized path, contents, and encoding. Text uses UTF-8; raw bytes and base64 inputs retur…
| Parameter | Type | Description |
|---|---|---|
contents * | ||
path * | string | |
project_id * | string | |
encoding | ||
expected_revision | ||
max_project_bytes | integer |
project_mkdir
Create a cloud project directory using a zero-byte .empty file. The parent must exist and the target must not exist. The visible .empty marker may remain after files are added. Default project limit: 256 MiB. Pass expected_revision from a read to reject stale edits, including changes during upload. A rejected write is not reapplied to a newer revision. This guards the project's content revision. Generated previews such as thumbnail.png can change within that revision.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
project_id * | string | |
expected_revision | ||
max_project_bytes | integer |
project_rm
Remove a cloud project file or directory recursively, without globbing. Cannot remove the project root or main.kcl. Without expected_revision, conflicts remove the latest contents beneath the path, including new files. Default total uncompressed project limit: 256 MiB. Pass expected_revision from a read to reject stale edits, including changes during upload. A rejected write is not reapplied to a newer revision. This guards the project's content revision. Generated previews such as thumbnail.png can change within that revision.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
project_id * | string | |
expected_revision | ||
max_project_bytes | integer |
project_cp
Copy a file or directory within a cloud:<uuid> project in one upload. An existing destination directory receives the source basename. Existing files may be replaced, except main.kcl. Directory collisions are errors. Without expected_revision, conflicts refresh and reapply. Default total project limit: 256 MiB. Pass expected_revision from a read to reject stale edits, including changes during upload. A rejected write is not reapplied to a newer revision. This guards the project's content revision. Generated previews such as thumbnail.png can change within that r…
| Parameter | Type | Description |
|---|---|---|
destination * | string | |
project_id * | string | |
source * | string | |
expected_revision | ||
max_project_bytes | integer |
project_mv
Move a file or directory within a cloud project in one replacement upload. Uses project_cp destination rules. Cannot move or overwrite main.kcl or move the root. Without expected_revision, conflicts refresh and reapply against the latest contents. Default total uncompressed project limit: 256 MiB. Pass expected_revision from a read to reject stale edits, including changes during upload. A rejected write is not reapplied to a newer revision. This guards the project's content revision. Generated previews such as thumbnail.png can change within that revision.
| Parameter | Type | Description |
|---|---|---|
destination * | string | |
project_id * | string | |
source * | string | |
expected_revision | ||
max_project_bytes | integer |
project_access
Get current project access capabilities for an existing path. Requires a cloud:<uuid> project ID and the caller's Zoo credentials. Default total uncompressed project limit: 256 MiB.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
max_project_bytes | integer | |
path | string |
project_stat
Get cloud project file metadata or an inferred directory's kind and path. Directory-specific IDs, timestamps, sizes, and hashes are null because the API stores files. Includes the project revision for a subsequent mutation's expected_revision. Default total uncompressed project limit: 256 MiB. The revision tracks project content; generated previews such as thumbnail.png can change within that revision.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
max_project_bytes | integer | |
path | string |
project_readdir
List immediate cloud directory children as {files: [metadata, ...]}. Requires a cloud:<uuid> project ID. Includes the project revision for a subsequent mutation's expected_revision. Default total uncompressed project limit: 256 MiB. The revision tracks project content; generated previews such as thumbnail.png can change within that revision.
| Parameter | Type | Description |
|---|---|---|
project_id * | string | |
max_project_bytes | integer | |
path | string |
project_read_file
Read a cloud project file as UTF-8 text or base64-encoded binary data. Returns {contents: str, encoding: str, revision: str}. Downloads only the requested file from the current content revision. Generated previews such as thumbnail.png can change within that revision. Default total project limit: 256 MiB.
| Parameter | Type | Description |
|---|---|---|
path * | string | |
project_id * | string | |
encoding | string | |
max_project_bytes | integer |