def set_discover_targets(discover: bool) -> dict:
    """Controls whether to discover available targets and notify via
    `targetCreated/targetInfoChanged/targetDestroyed` events.

    Parameters
    ----------
    discover: bool
            Whether to discover available targets.
    """
    return {"method": "Target.setDiscoverTargets", "params": {"discover": discover}}