pub struct ReadParams {
pub filepath: Option<String>,
pub paths: Option<Vec<String>>,
pub detail_level: String,
pub start_line: u32,
pub end_line: Option<u32>,
pub max_lines_per_file: u32,
}Expand description
Parameters for the read tool.
Accepts either a single file via filepath or multiple files via paths.
Exactly one of the two must be provided; the handler validates this at runtime.
File type (source vs config) is auto-detected from the extension.
Fields§
§filepath: Option<String>Single file path. Use this for reading one file.
Mutually exclusive with paths.
paths: Option<Vec<String>>Multiple file paths (max 10). Use this for batch reading.
Mutually exclusive with filepath.
detail_level: StringDetail level for source files: source_only, compact, symbols, or full.
Ignored for config/non-source files (always raw content).
start_line: u32First line to return (1-indexed). Single-file mode only.
end_line: Option<u32>Last line to return (1-indexed, inclusive). Single-file mode only.
max_lines_per_file: u32Maximum lines returned per file (defaults to 500). Applies to batch mode and config/raw files.
Trait Implementations§
Source§impl Clone for ReadParams
impl Clone for ReadParams
Source§fn clone(&self) -> ReadParams
fn clone(&self) -> ReadParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReadParams
impl Debug for ReadParams
Source§impl Default for ReadParams
impl Default for ReadParams
Source§impl<'de> Deserialize<'de> for ReadParams
impl<'de> Deserialize<'de> for ReadParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for ReadParams
impl JsonSchema for ReadParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more