Generate Codebase Documentation Tool
generate-codebase-documentationUse this when the user wants a new documentation Space built from selected files in an imported repository. After authorization, this state-changing action consumes AI credits, creates a private Space, links the repository, and queues per-file jobs using repository_id and selected_files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Optional human language for the generated per-file codebase documentation. Defaults to English. | |
| space_name | No | Optional name for the new documentation Space. If omitted, the platform creates a generated name from repository, branch, and timestamp. | |
| repository_id | Yes | Required numeric ID of an already connected/imported repository from the user repository records; do not pass a slug, URL, provider name, or Space repository-link ID. | |
| selected_files | Yes | Required repository file paths already selected from the imported repository tree, such as app/Models/User.php or routes/api.php. This tool creates one Space with per-file queued docs; use browser guidance if the user still needs to choose files. | |
| additional_instructions | No | Optional customer instructions for documentation tone, scope, examples, framework focus, or project-specific emphasis applied to every queued file. |