Add project
add_projectAdd an existing directory as a tracked project. Returns project details (ID, path, name, color); already-known directories return the existing entry.
Instructions
Remember a directory as a project (the programmatic equivalent of the sidebar PROJECTS + button). The path must exist and be a directory; a git repo is NOT required. Adding an already-known directory is a no-op — returns added:false with the existing entry. Returns the project (id/path/name/color).
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": {
"dir": "<dir>"
},
"name": "add_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | absolute path to an existing directory to track as a project |