Generate Full Tree Documentation Tool
generate-full-tree-documentationUse this when the user has reviewed a full-tree preview and asks to create its documentation Space. After authorization, this state-changing action consumes AI credits, creates a private linked Space, and queues documentation from the stored preview using repository_id and accepted_tree_hash.
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": {
"repository_id": "<repository_id>",
"accepted_tree_hash": "<accepted_tree_hash>"
},
"name": "generate-full-tree-documentation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| space_name | No | Optional name for the new full-tree documentation Space. If omitted, the repository name is used. | |
| repository_id | Yes | Required numeric ID of the imported repository that already has a generated full-tree documentation preview. Do not pass a Space ID, repository slug, provider URL, or Autopilot repository-link ID. | |
| excluded_paths | No | Optional metadata listing known repository paths the user intentionally excluded during tree review. This is reported back for clarity and does not perform file deletion. | |
| accepted_tree_hash | Yes | Required SHA-256 tree_hash returned by get-full-tree-documentation-preview. Include it only after the user approved that exact stored preview; if it no longer matches, refresh preview before submitting. Do not send documentation_tree. |