Read storage directly.
assemblysload(slot)// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract Peek {
uint256 public a = 7;
function getSlot(uint256 slot) external view returns (bytes32 v) {
assembly {
// TODO sload
}
}
}