Show a part to the user in 3D
open_projectShows the user a part: opens a project on the screen they are watching — the parcad app, or the ParCAD web page in their browser — loaded from disk, exactly as if they had picked it, in every open window. A part just built is shown by saving it with save_project under a name of its own and opening that; the part that was open is left as it was. A chat that renders MCP Apps, such as claude.ai, the Claude apps and ChatGPT, also draws the part in 3D beside the reply for the user to turn: shown_in_chat: true says the reply carried the built part to that chat, and it is absent when the client draws nothing or the part did not build. On a hosted parcad, which has no window, the chat is where a part appears in 3D. Takes a path from list_projects. Returns the session without the loaded script: script_chars and script_sha256 identify the text every window took, script: true asks for it, and read_project has it anyway. get_session says which part is on screen; set_script changes that part only. Like set_script, the reply waits for a window to report evaluating it and carries viewers, each with the revision it showed and whether it built. A viewer that last reported over 30 seconds ago is marked stale; one silent for 300 seconds is left out and not waited for.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "open_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A project path exactly as `list_projects` gives it: slash-separated folder names and no extension, such as `bracket` or `Mounts/bracket`. | |
| script | No | Also return the loaded script. Off by default: the reply identifies it by `script_chars` and `script_sha256`, and read_project has the text. | |
| wait_s | No | How long to wait, in seconds, for a window to report that it evaluated the opened part. 0 to 60; defaults to 20. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| origin | Yes | ||
| script | No | ||
| viewers | Yes | ||
| revision | Yes | ||
| script_chars | Yes | ||
| script_sha256 | Yes | ||
| shown_in_chat | No |