tools.modify_self_json module

Modify Stargazer’s self.json persona configuration via search-and-replace.

async tools.modify_self_json.run(old_text, new_text, ctx=None)[source]

Execute this tool and return the result.

Parameters:
  • old_text (str) – The old text value.

  • new_text (str) – The new text value.

  • ctx (ToolContext | None) – Tool execution context providing access to bot internals.

Returns:

Result string.

Return type:

str