MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / Insert

Class Insert

crates/agent/src/agent/tools/fs_write.rs:256–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254#[derive(Debug, Clone, Serialize, Deserialize)]
255#[serde(rename_all = "camelCase")]
256pub struct Insert {
257 path: String,
258 content: String,
259 insert_line: Option<u32>,
260}
261
262impl Insert {
263 async fn execute(&self, path: impl AsRef<Path>) -> Result<(), ToolExecutionError> {

Callers 5

handleMethod · 0.85
handleMethod · 0.85
rlFunction · 0.85
test_insert_at_lineFunction · 0.85
test_insert_appendFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_insert_at_lineFunction · 0.68
test_insert_appendFunction · 0.68