Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultMaxChars = 50000 // 50k chars default DefaultPageSize = 10000 // 10k chars per page DefaultMaxDownload = 10 // 10MB default download limit MaxDownloadLimit = 100 // 100MB hard limit HTTPTimeout = 60 * time.Second )
Defaults
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CrackBase64Args ¶
type CrackBase64Args struct {
Data string `json:"data" jsonschema:"Base64-encoded document content"`
MaxChars int `json:"max_chars,omitempty" jsonschema:"Maximum characters to return (default 50000, -1 for unlimited)"`
Page int `json:"page,omitempty" jsonschema:"Page number for paginated results (1-indexed, default 1)"`
PageSize int `json:"page_size,omitempty" jsonschema:"Characters per page (default 10000)"`
}
type CrackFileArgs ¶
type CrackFileArgs struct {
Path string `json:"path" jsonschema:"Path to the document file to extract text from"`
MaxChars int `json:"max_chars,omitempty" jsonschema:"Maximum characters to return (default 50000, -1 for unlimited)"`
Page int `json:"page,omitempty" jsonschema:"Page number for paginated results (1-indexed, default 1)"`
PageSize int `json:"page_size,omitempty" jsonschema:"Characters per page (default 10000)"`
}
Tool argument types with optional pagination/limits
type CrackURLArgs ¶
type CrackURLArgs struct {
URL string `json:"url" jsonschema:"URL of the document to download and extract text from"`
MaxChars int `json:"max_chars,omitempty" jsonschema:"Maximum characters to return (default 50000, -1 for unlimited)"`
Page int `json:"page,omitempty" jsonschema:"Page number for paginated results (1-indexed, default 1)"`
PageSize int `json:"page_size,omitempty" jsonschema:"Characters per page (default 10000)"`
MaxDownloadMB int `json:"max_download_mb,omitempty" jsonschema:"Maximum download size in MB (default 10, max 100)"`
}
Click to show internal directories.
Click to hide internal directories.