Skip to main content

SET_NAME_TOOL

Constant SET_NAME_TOOL 

Source
pub(crate) const SET_NAME_TOOL: &str = r#"{
  "name": "SetName",
  "description": "Rename an AgentMux UI element. `target` selects which: \"window\" (the OS taskbar / window-title name; clamped to 64 chars), \"tab\" (the tab-bar label), \"pane\" (a conversation pane's header title), or \"workspace\" (the workspace name). Defaults to your own element; pass `target_id` (from Layout/WhoAmI) to rename any specific element by id. Names are trimmed; non-window names clamp to 128 chars.",
  "inputSchema": {
    "type": "object",
    "properties": {
      "target":    { "type": "string", "enum": ["window", "tab", "pane", "workspace"], "description": "Which UI element to rename" },
      "name":      { "type": "string", "description": "The new name/title to display" },
      "target_id": { "type": "string", "description": "Explicit id of the element to rename (window_id / tab_id / workspace_id / block_id depending on target). Omit to default to your own." }
    },
    "required": ["target", "name"]
  }
}"#;