box_docgen_template_list_tool
List all accessible Box Doc Gen templates for a user, with options for pagination using a marker and limit. Returns template metadata or an error message.
Instructions
List all Box Doc Gen templates accessible to the user.
Args: client (BoxClient): Authenticated Box client. marker (str, optional): Pagination marker. limit (int, optional): Max items per page.
Returns: dict[str, Any] | list[dict[str, Any]]: A list of template metadata or an error message.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| marker | No |
Implementation Reference
- src/tools/box_tools_docgen.py:39-56 (handler)The handler function that executes the tool: gets the Box client from context and lists DocGen templates with optional marker and limit for pagination.async def box_docgen_template_list_tool( ctx: Context, marker: str | None = None, limit: int | None = None, ) -> list[dict[str, Any]]: """ List all Box Doc Gen templates accessible to the user. Args: client (BoxClient): Authenticated Box client. marker (str, optional): Pagination marker. limit (int, optional): Max items per page. Returns: dict[str, Any] | list[dict[str, Any]]: A list of template metadata or an error message. """ box_client = get_box_client(ctx) return box_docgen_template_list(box_client, marker=marker, limit=limit)
- src/tool_registry/doc_gen_tools.py:25-25 (registration)Registers the box_docgen_template_list_tool with the MCP server using the FastMCP tool decorator.mcp.tool()(box_docgen_template_list_tool)
- src/tool_registry/doc_gen_tools.py:15-16 (registration)Imports the box_docgen_template_list_tool from src/tools/box_tools_docgen.py for registration.box_docgen_template_list_tool, )