Skip to main content
Glama
box_tools_file_representation.py686 B
from typing import Any from box_ai_agents_toolkit import box_file_text_extract from mcp.server.fastmcp import Context from tools.box_tools_generic import get_box_client async def box_file_text_extract_tool( ctx: Context, file_id: str, ) -> dict[str, Any]: """ Extract text from a file in Box. The result can be markdown or plain text. If a markdown representation is available, it will be preferred. Args: file_id (str): The ID of the file to extract text from. Returns: dict[str, Any]: The extracted text (markdown or plain text). """ box_client = get_box_client(ctx) return box_file_text_extract(box_client, file_id)

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/box-community/mcp-server-box'

If you have feedback or need assistance with the MCP directory API, please join our Discord server