tools.read_tool_code module

Read Python tool source code from the tools/ directory.

async tools.read_tool_code.run(filename, max_lines=None, start_line=None, end_line=None, **_kwargs)[source]

Execute this tool and return the result.

Parameters:
  • filename (str) – The filename value.

  • max_lines (int) – The max lines value.

  • start_line (int) – The start line value.

  • end_line (int) – The end line value.

Returns:

Result string.

Return type:

str