Daslab CLI and MCP
Every workflow becomes a scene: its data, its tools, the agent that runs it, and the history of everything it did. The daslab CLI and any MCP client reach those tools from outside the app, with the scene's accounts already connected. An MCP client connects directly; the CLI is an MCP client of its own, made for the shell and for scripts.
Set up a client has the steps for Claude and Claude Cowork, Claude Code, Cursor, Codex, opencode, ChatGPT and any other MCP client. Install the CLI is on the same page.
Claude Code through the CLI
daslab install claude # https://daslab.run/mcp and a /daslab skill
daslab install claude --world # pin your home world
daslab install claude --scene-id scn_x # pin one sceneThis writes a daslab entry into ~/.claude.json and a /daslab skill into ~/.claude/skills/daslab/. Running it again replaces only the daslab entry and leaves your other MCP servers alone. Restart Claude Code, and every tool in the scene is callable there with no CLI in between.
Find your way around a workspace
# 1. The scenes in your home world
daslab --world call daslab_list_scenes
# 2. Everything in one of them
SCENE=scn_xxxxxxxxxxxx # an id from step 1
daslab --scene-id $SCENE call daslab_get_scene_assets scene_id=$SCENE
# 3. Every tool that scene exposes
daslab --scene-id $SCENE tools--scene-id and --world are global flags and must come before the subcommand, or before the tool name in daslab call. Anything after the tool name is read as a key=value argument, which is what keeps daslab call <tool> k=v k=v short enough for a model to write.
Switch servers, worlds and scenes
Each Daslab server (daslab.run, one of your own, localhost) keeps its own worlds and sign-in. The active server scopes everything under it: Server ▸ World ▸ Scene.
daslab server # list servers (* active)
daslab server add https://daslab.mycompany.com --name selfhost # register one
daslab server use selfhost # switch; world and scene follow
daslab login # sign in to the active server
daslab server remove selfhostDASLAB_API_URL overrides the server for a single invocation.
# Persistent: the default for every later command
daslab world use "Acme Labs" # switch world
daslab world # list worlds, or pick one interactively
daslab scenes use Travel # switch scene
daslab scenes # list scenes, or pick one interactively
# One call only, no config change
daslab --scene-id <id> tools
daslab --scene-id <id> call <tool> key=value
daslab --world call <tool> key=valueIn an MCP client, the URL you connected decides the scope. https://daslab.run/mcp can move across every world you can open, and daslab_use takes it anywhere. https://daslab.run/mcp/acme/q4-launch pins one world and scene by name, and https://daslab.run/mcp/scene/<id> pins one scene by its id.
Core commands
daslab tools List the tools in the current scope
daslab call <tool> key=value ... Call one tool directly
daslab ask "..." [--effort high] Run one agent turn
daslab chat Talk to the agent interactively (/model, /effort, /connect, /keys)
daslab provider connect <name> Link a model subscription (chatgpt, grok, kimi, claude)
daslab jobs List jobs and resume one
daslab history A scene's commits, newest first
daslab server Switch the active server
daslab world / daslab scenes Switch the default world or scene
daslab scene export <id> Write a scene to a folder (--out dir; --json for one file; --git for its history as git commits)
daslab scene push <path> Import a folder or a .blueprint.json file (merges; --strict, --replace, --dry-run)
daslab docs Print the CLI's usage referenceThree scopes work the same on tools, call and install claude:
(default) Current scene from config
--world Your home world
--scene-id <id> One scene by its iddaslab tools
daslab tools # a readable list, current scene
daslab tools --world # everything in your home world
daslab tools --scene-id scn_xxx # one scene
daslab tools --json # full input schemas--json prints the MCP tools/list shape, { tools: [{ name, description, input_schema }] }, which is stable to parse.
daslab call
Calls a tool directly, with no model in the loop.
# key=value: values that look like JSON are parsed as JSON
daslab call daslab_list_scenes
daslab call daslab_get_scene_assets scene_id=scn_xxx
daslab call daslab_search_web query="latest claude code release" recency=week
# Raw JSON when the arguments nest
daslab call daslab_create_scene --json '{
"name": "Q1 Investor Update",
"parent": "scn_parent",
"description": "Financials and market research for the Q1 deck"
}'
# The tool's text output as is, without pretty-printing
daslab call <tool> --rawOutput is pretty-printed JSON when the tool's text parses as JSON, and verbatim text otherwise, so it pipes into jq as it is.
Most-used tools
Everything in a scene is a cell: a value, and a view that shows it. These are the tools that find, make and read cells, in any scene.
Find your way
daslab_list_scenes The scenes in the current workspace
daslab_get_scene_assets Everything in a scene (arg: scene_id)
daslab_read_cell What a cell holds, when it was computed, and its last error
daslab_use Go to a scene, job or cell by id, link or handle (MCP clients on /mcp)
Make and change cells
daslab_add_cell Add a cell: note, table, view, file, or "provider/type" for a connected source
daslab_write_script Set a cell's value: a literal, or a formula that recomputes
daslab_write_view Write a view, the HTML that draws a cell
daslab_edit_view Edit an existing view
daslab_table_query Read-only SQL across the scene's tables
daslab_remove_asset Remove a cell from the scene
Connect
daslab_list_providers What can be connected
daslab_list_asset_types Per provider, what can be added
daslab_browse_assets Browse a connected account before adding from it
Scenes
daslab_create_scene Create a scene (parent or world_id places it)
daslab_update_scene Rename a scene, set its description
daslab_render Render a widget_data shape to png, pdf, html, markdown or textNext to these are the tools of every account connected to the scene: gmail_, github_, slack_*, and so on.
Add a Drive folder to a scene from the shell
SCENE=scn_xxxxxxxxxxxx
# 1. Browse a connected Google Drive for folders
daslab --scene-id $SCENE call daslab_browse_assets provider=google_drive type=folder
# 2. Add the one you picked, by the ref the browse returned
daslab --scene-id $SCENE call daslab_add_cell \
--json '{"type":"google_drive/folder","name":"Travel receipts","ref":"<ref from step 1>"}'
# 3. Check what the new cell holds
daslab --scene-id $SCENE call daslab_read_cell cell_id=<id from step 2>The cell is in the scene on the web and in the apps as soon as the call returns. There is nothing to publish.
Run the agent from the terminal
daslab ask "summarize my unread gmail and post a digest to Slack"
daslab ask "search the web for our three closest competitors and add a view comparing their pricing"ask runs one turn of the agent in the current scene, as a job like any other: daslab jobs lists it and resumes it. The reply streams in with each tool shown as it runs; it is meant for reading, not for parsing. --agent picks the agent, --image attaches a picture, and daslab chat keeps the conversation open.
Tips for scripts and models
- A model driving the CLI should read
daslab tools --jsononce, then calldaslab call <tool> --json '{...}'with argument names from each tool'sinput_schema. - In shell scripts,
daslab call ... | jq '.field'works because output is JSON by default. daslab install claudeis safe to re-run, for example after a new API key.
Update and sign out
daslab update # check for and install the latest version
daslab update --check # only check
daslab logout # clear the stored credentialsdaslab --help lists every subcommand, and each has its own --help. For the tools in your current scope, run daslab tools; the list grows as you connect accounts to the scene.
Updated 2026-11-14