How do I play oneshot animations in Godot.NET?

Godot Version

Godot Engine v4.6.2.stable.mono.official

Question

I've been trying to create my first Animation Tree in Godot. I'm using an animation blend tree to make a oneshot jump animation. However, I've run into an issue where the oneshot doesn't seem to trigger. I copied the C# oneshot code from the official godot engine website and edited it to use my own oneshot animation, but whenever I run the game it stays stuck on the idle animation even when the jump button is pressed. I have not gotten any sort of errors despite the incorrect animation. How do I create proper animation trees in C#?

// Play child animation connected to “shot” port.
animationTree.Set(“parameters/Os_jump/request”, (int)AnimationNodeOneShot.OneShotRequest.Fire);

// Abort child animation connected to “shot” port.
animationTree.Set(“parameters/Os_jump/request”, (int)AnimationNodeOneShot.OneShotRequest.Abort);

// Get current state (read-only).
animationTree.Get(“parameters/Os_jump/active”);