Generate Repository Documentation Tool
generate-repository-documentationUse this when the user wants one markdown document generated from selected files in an imported repository. After authorization, this state-changing action consumes AI credits and creates a generation using numeric repository_id and selected_files, with optional Space saving.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Optional generation history filename. Defaults to the selected repository documentation naming pattern. | |
| language | No | Optional human language for the generated repository documentation. Defaults to English. | |
| 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. | |
| save_to_space | No | Optional destination Space page to create from the generated documentation after authorization. The authenticated user must manage the Space. | |
| selected_files | Yes | Required repository file paths already selected from the imported repository tree, such as app/Models/User.php or routes/api.php. 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. |