This paper presents the design of an intra-row obstacle avoidance shovel-type weeding machine. Theoretical analysis of intra-row weeding components guided the determination of the structures and parameters for key parts, including the signal acquisition mechanism, automatic obstacle avoidance mechanism, and weeding shovel. Furthermore, a hydraulic system was designed to support these functions. The design aims to optimize intra-row weeding operations, reduce labor costs, enhance weed control effectiveness, and prevent collisions between weeding equipment and grapevines. Through the construction of a mathematical model, the analysis determined the necessary minimum return speed of the hydraulic cylinder for the intra-row weeding shovel to avoid grapevines. We also established a reasonable range for the extension speed of the hydraulic cylinder to minimize areas missed during weeding. Further analysis showed that using the minimum return speed of the hydraulic cylinder effectively reduced missed weeding areas. A virtual prototype model of the weeding machine was created in ADAMS. Using the coverage rate of weeding operation as the evaluation index, single-factor simulation tests determined that the extension speed of the piston rod in the obstacle avoidance hydraulic cylinder and the forward speed of the weeding machine are the main influencing factors. The preset threshold of the control system, which triggered the automatic obstacle avoidance mechanism when the obstacle avoidance rod reached a specific angle (the “Angle Threshold”), was identified as a secondary influencing factor. Other factors were considered irrelevant. Hydraulic cylinder extension speed, weeding machine forward speed, and angle threshold were chosen as the influencing factors. Following the principles of a Box–Behnken experimental design, a quadratic regression combination experiment was designed using a three-factor, three-level response surface analysis method. The evaluation criterion focused on the coverage rate of weeding operation. A regression model was developed to determine the coverage rate of the weeding operation, identifying the optimal parameters as follows: obstacle avoidance hydraulic cylinder extension speed of 120 mm/s, forward speed of the weeding machine at 0.6 m/s, and an angle threshold of 18°. The optimized coverage rate of the weeding operation achieved 86.1%. This study serves as a reference for further optimization of intra-row weeding machines in vineyards and for other crops.