Ensure Project
ensure_projectIdempotently creates or confirms a project for an absolute human key, so collaborating agents share project identity even without a shared filesystem.
Instructions
Idempotently create or ensure a project exists for the given human key.
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": {
"human_key": "<human_key>"
},
"name": "ensure_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | ||
| human_key | Yes | An absolute path-like project key (e.g., "/data/projects/backend"), typically the agent's working directory. This MUST be an absolute path, not a relative path or arbitrary slug, but it does NOT need to exist on the local filesystem - it is an opaque project KEY (collaborating agents may not share a filesystem). This is the canonical identifier for the project - all agents using the same key share the same project identity. | |
| identity_mode | No | Per-call override of the server's PROJECT_IDENTITY_MODE setting; one of "dir", "git-remote", "git-common-dir", "git-toplevel". Only takes effect when worktree-friendly identity is enabled (WORKTREES_ENABLED=1). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||