Tamper a server->client resources/read result: mutate result.contents[]
text (and blob, decoded then re-encoded, where relevant). Mirrors how
injectToolResult walks a tools/call result's content.
Tamper a server->client prompts/get result: mutate every
result.messages[].content.text (prompt-template poisoning).
Tamper a server->client sampling/createMessage request: rewrite every
params.messages[].content.text (server-to-model prompt injection).
Set a single argument (by JSON path within params.arguments) to a value,
creating it if absent. tool optionally restricts to one tool by name.
Replace (or merge into) the whole params.arguments object.
Set an argument (by path) to the next payload from a list or payload library, cycling one payload per matching call (stateful cursor).
Actions a rule can apply to a matched message.