docs: def _get_tool_dict(self, tool_name):
          """Represents the tool as a dict with extra meta."""
          tool = getattr(self, tool_name)
          standard_attrs, custom_attrs = self._get_button_attrs(tool)
          return dict(
              name=tool_name,
              label=getattr(tool, 'label', tool_name),
              standard_attrs=standard_attrs,
              custom_attrs=custom_attrs,
          )