Please pardon my group-theoretic ignorance. Let $S_g = \left< a_1, b_1 , \ldots, a_g, b_g | [a_1,b_1] \cdots [a_g,b_g] \right>$ be the fundamental group of a genus $g \geq 2$ surface. If I am given a homomorphism $\phi: S_g \to S_g$ how can I determine if $\phi$ is injective, surjective, and if $\phi$ is an automorphism how can I determine if it is inner?
I know how to do these in the case of a free group (using foldings, equivalence of injectivity and surjectivity, and trial and error) but I ave no idea how to do anything with the relation.
I would love to hear about specific methods for surface groups as well as general methods for 1-relator groups (if such methods exist).
$\textit{Added Later:}$ To summarize the below answers and comments (which were very helpful and gave me a lot to think about) it seems that the only part of may question tat still stands is how to determine if a map from a surface group to itself is surjective (or equivalently by the below discussion how to determine if the image has finite index).
This is not a complete answer, but may be helpful. You did not say how $\phi$ is given, but I will assume it is by generator images, because that enables you to compute $\phi$ on all group elements.
It is known that all finitely generated subgroups of a surface either have finite index and are isomorphic to a possibly different surface group, or they have infinite index and are free. So this applies to the image of $\phi$.
If this image has finite index, then you can certainly verify that by coset enumeration for example, and that will tell you the index and hence tell you whether $\phi$ is surjective. You can then theoretically at least decide whether $\phi$ is injective by looking for an element in the kernel and also looking for an inverse map. You carry out these searches in parallel and one of them must eventually return the answer. That is of course very inefficient in general, but in specific examples you will often get the answer reasonably quickly.
If $\phi$ is an automorphism, then you can in theory determine whether it is inner, because the conjugacy problem on ordered lists is solvable in all hyperbolic groups. In fact Dehn gave a solution to the conjugacy problem on elements in hyperbolic groups, and I think that would help you determine the answer in practice.
So suppose that the image of $\phi$ has infinite index and is therefore free. So $\phi$ is neither injective nor surjective in that case. What I do not know immediately is whether you can even theoretically verify that the index is infinite.
You could do that (also in practice) if the image is a quasiconvex subgroup of $S_g$, using a method similar to Stalling Foldings. I am not sure whether all finitely generated subgroups of surface groups are quasiconvex. That must have been thought about,so it must be either known or a known open problem.
Or perhaps, even if the answer is no, the generalized word problem is known to be solvable in surface groups?
Added later: after checking the known results, I see that a surface group cannot be isomorphic to a proper subgroup of finite index, because such subgroups have higher Euler characteristic than the original group. Also, surface groups are residually finite and hence Hopfian, so a surjective homomorphism must be an isomorphism.