cmd_project
Run typed .NET, Python, and Node project commands—build, test, lint, install packages, or start apps—in a workspace without a shell; actions run live or await owner approval.
Instructions
Run a project command in a workspace as a typed action (no shell): .NET (build, test, packages, EF Core, run), Python (actions that start with py_) or Node (actions that start with node_). The owner watches it live in the Waymark Console. Some actions run at once, others wait for the owner's approval - the result says which. Pick the project with options: .NET uses 'target' (a .sln, .slnx or project file); Python and Node use 'project' (a folder, or its pyproject.toml, requirements or package.json; default the workspace folder) and the command runs in that folder. .NET ACTIONS and their optionsJson keys (* = required, all paths relative to the workspace, unknown keys are refused): build, rebuild, clean, restore: target, configuration, framework, noRestore, verbosity (quiet|minimal|normal|detailed), timeoutMinutes test: target, configuration, framework, filter, noBuild, noRestore format_check, format: scope (whitespace|style|analyzers), target info: - list: kind* (projects|references|packages), solution (for projects), project (for the others), filter (outdated|vulnerable|deprecated), includeTransitive new: template* (classlib, console, webapi, web, mvc, blazor, worker, xunit, xunit3, mstest, nunit, sln, slnx, gitignore, editorconfig, globaljson, nugetconfig, tool-manifest ...), name, output (folder), framework sln: change* (add|remove), solution*, projects* (array) reference: change* (add|remove), project*, references* (array) package_add: project*, package*, version, prerelease package_remove: project*, package* tool_restore: - ef_list: kind (migrations|dbcontexts), project*, startupProject, context ef_migrations_add: name*, project*, startupProject, context, outputDir ef_migrations_remove: project*, startupProject, context ef_database_update: project*, startupProject, context, migration or revertAll run: project*, configuration, launchProfile, noBuild, appArgs (array), timeoutMinutes (the app keeps running until stopped) PYTHON ACTIONS (every one accepts project and timeoutMinutes; paths are relative to the workspace; packages are installed as wheels only, nothing is built): py_info: - - versions of Python, pip, uv, ruff, pyright and mypy, and the project's lock file and virtual environment py_list: tool (uv|pip), venv - packages installed in the project's virtual environment py_venv: tool, venv (a folder name, default .venv), python (uv only, such as 3.12) - creates the virtual environment py_install: tool, venv, groups (array), extras (array), requirements (pip; default requirements.txt) - installs from uv.lock (uv sync --frozen) or from a requirements file, with --require-hashes when it has hashes py_test: venv, filter (pytest -k), marker (pytest -m), maxFail, verbose, paths (array: files, folders or tests/test_a.py::TestA::test_b) - pytest in the project's virtual environment py_lint: paths (array) - ruff check py_format: check, paths (array) - ruff format; it changes files unless check is true py_typecheck: checker (pyright|mypy), venv, paths (array) py_run: venv, module* or script* (give one), appArgs (array) - python -m module or a script; the program keeps running until stopped py_package_add: package*, version*, group, tool - uv add of one package at an exact version py_package_remove: package*, group, tool - uv remove NODE ACTIONS (every one accepts project, a folder or its package.json, default the workspace folder, where the command runs, and timeoutMinutes; npm runs as node npm-cli.js, installs run no lifecycle scripts): node_info: - - Node, npm and TypeScript versions, the project's package manager, node_modules and scripts node_list: - - npm ls --depth=0 (needs node_modules) node_install: - - npm ci from package-lock.json with --ignore-scripts (npm projects only) node_typecheck: tsconfig - tsc --noEmit with the project's own TypeScript node_build, node_test, node_lint: script (default build, test, lint), args (array, passed after --) - a script named in package.json node_script: script*, args (array) - any script of package.json; its text is shown on the approval card node_run: script (default dev, else start), args (array) - a script that keeps running until stopped node_package_add: package*, version*, dev - npm install of one package at an exact version, --save-exact --ignore-scripts node_package_remove: package* - npm uninstall --ignore-scripts When 'target' is omitted the only .sln/.slnx file in the workspace root is used. For git use cmd_git; for ports and locked build files cmd_proc; for anything without a typed action cmd_shell. RETURNS: result, compiler or linter findings (workspace-relative paths), test summary and the last output lines. If it takes longer than waitSeconds you get a run id for cmd_wait / cmd_output.
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": {
"workspace": "<workspace>",
"action": "<action>",
"purpose": "<purpose>"
},
"name": "cmd_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guide | No | true: put the commands guide first in the result. Use on your first commands call, or when told it changed. | |
| action | Yes | One of: build, rebuild, clean, restore, test, format_check, format, info, list, new, sln, reference, package_add, package_remove, tool_restore, ef_list, ef_migrations_add, ef_migrations_remove, ef_database_update, run, py_info, py_list, py_venv, py_install, py_test, py_lint, py_format, py_typecheck, py_run, py_package_add, py_package_remove, node_info, node_list, node_install, node_typecheck, node_build, node_test, node_lint, node_script, node_run, node_package_add, node_package_remove | |
| purpose | Yes | One sentence: why you run this. The owner reads it before approving, sees it live, and it is kept in the audit log. | |
| workspace | Yes | Workspace name as shown in Waymark (a single workspace; '*' is not accepted) | |
| optionsJson | No | JSON object with the options of the action, for example {"configuration":"Release","noRestore":true} or {"project":"api","filter":"test_login"}. Omit when none are needed. | |
| waitSeconds | No | Seconds to wait for the result before returning a run id (default 30, at most about 45). The command keeps running; use cmd_wait to wait longer. |