This document describes the tools available in the box_tools_docgen module for document generation and template management in Box.
Mark a file as a Box DocGen template.
- Arguments:
ctx: Request contextfile_id: ID of the file
List all Box DocGen templates accessible to the user with pagination support.
- Arguments:
ctx: Request contextmarker: Pagination marker (optional)limit: Max items per page (optional)
Retrieve details of a specific DocGen template by its ID.
- Arguments:
ctx: Request contexttemplate_id: ID of the template
Retrieve details of a specific DocGen template by its name.
- Arguments:
ctx: Request contexttemplate_name: Name of the template
Remove a file as a Box DocGen template.
- Arguments:
ctx: Request contexttemplate_id: ID of the template
List all tags/variables for a DocGen template with version-specific support.
- Arguments:
ctx: Request contexttemplate_id: ID of the template
List DocGen jobs that used a specific template.
- Arguments:
ctx: Request contexttemplate_id: ID of the template
Create a batch of documents from a DocGen template with multiple document generation data sets. Supports PDF and DOCX output.
- Arguments:
ctx: Request contexttemplate_id: ID of the templatebatch_data: List of data sets for document generation
Create a single document from a DocGen template using user input data.
- Arguments:
ctx: Request contexttemplate_id: ID of the templateinput_data: User input data for the template
List DocGen jobs in a specific batch with pagination support.
- Arguments:
ctx: Request contextbatch_id: ID of the batch
Retrieve a DocGen job by its ID.
- Arguments:
ctx: Request contextjob_id: ID of the job
List all DocGen jobs for the current user with pagination.
- Arguments:
ctx: Request contextmarker: Pagination marker (optional)limit: Max items per page (optional)
Refer to src/tools/box_tools_docgen.py for implementation details.