Could i interact with the inside of container by moby client api?

Is there a method could help me to exec a shell command in a running container and i could redirect the output to the stdout? I read the api document but still no idea.