Documentation
¶
Overview ¶
Package server serves document conversion as an MCP tool.
Index ¶
Constants ¶
const ( MaxLines = 2000 MaxBytes = 50 << 10 )
Default output limits, the same as malachi's read tool so a model sees one convention for paging through long text.
const ToolName = "convert_to_markdown"
ToolName is the tool's name, the same as markitdown-mcp's so clients and prompts written for that work unchanged.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Args ¶
type Args struct {
URI string `json:"uri" jsonschema:"the document: a file path, or a file:, data:, http: or https: URI"`
Offset int `json:"offset,omitempty" jsonschema:"line of the converted Markdown to start from (1-based)"`
Limit int `json:"limit,omitempty" jsonschema:"maximum number of lines to return"`
// Password is for an encrypted PDF. It passes through the model, so it
// is only ever one the user typed.
Password string `json:"password,omitempty" jsonschema:"password for an encrypted PDF, only one the user has given you; never guess one"`
}
Args are the tool's arguments.