Thread:User talk:Nx/Random MW API idea

In theory, do you think it would be possible to create a "replacetext" (and "start" and "end", I guess) parameter for action=edit? So you could say to the API, "replace the text from index start to end with replacetext." (I suppose in this particular implementation the end index wouldn't be strictly necessary.)