MCPcopy Index your code
hub / github.com/AI45Lab/Code / write_text

Method write_text

core/src/tools/builtin/edit.rs:301–310  ·  view source on GitHub ↗
(
                &self,
                _path: &WorkspacePath,
                content: &str,
            )

Source from the content-addressed store, hash-verified

299 Ok("hello world".to_string())
300 }
301 async fn write_text(
302 &self,
303 _path: &WorkspacePath,
304 content: &str,
305 ) -> WorkspaceResult<WorkspaceWriteOutcome> {
306 Ok(WorkspaceWriteOutcome {
307 bytes: content.len(),
308 lines: content.lines().count(),
309 })
310 }
311 async fn list_dir(
312 &self,
313 _path: &WorkspacePath,

Callers 1

executeMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected